Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Change Apply Button text from 'Apply' to 'OK'

(4) ShareShare
ReportReport
Posted on by 73
Good morning guys,
 
Recently I've got a requirement to revise the text of Apply Button inside Recommendation from 'Apply' to 'OK'. This is business rule recommendation which is coming out of box in Power Apps.  I am struggling to find out the Apply Button. So I've no idea about how to revise the button text from 'Apply' to 'OK'. Please help me.  Thank you, guys.
 
 
Categories:
  • Suggested answer
    Tom_Gioielli Profile Picture
    1,073 on at
    Change Apply Button text from 'Apply' to 'OK'
    It doesn't help too much, but this might be one of those items where you need to step back with the business to really diagnose where this requirement is stemming from. Why do users need detailed instructions like this for every single field?
    • Can you instead use the column descriptions and train the user to hover over the field name if they want more details?
    • Are there too many fields with purposes that are difficult to easily understand that need to be reevaluated?
    • Can you have a single web resource with instructions and information for users that they can reference? Or maybe a link out to a SharePoint site where documentation is stored?
     
    Sometimes the business gets stuck on a requirement like this because this is how it has always been done, but as Admins we can hopefully cut to the core of the issue and improve it without resorting to such manual and intensive efforts in the application itself.
  • HH-22102055-0 Profile Picture
    73 on at
    Change Apply Button text from 'Apply' to 'OK'
    @Tom_Gioielli we have the different description for each and every field to show on the main form. I am not sure if I can embed each HTML web resource for each field in a single main form. I am gonna try if it works. 
  • Suggested answer
    Tom_Gioielli Profile Picture
    1,073 on at
    Change Apply Button text from 'Apply' to 'OK'
    @HH-22102055-0, if you want to have some sort of text there without anything extra, you can always use an HTML web resource and add it to your form. This gives you rich text control to add whatever you would like it to say, and you should be able to mimic the recommendation without the action button being included.
     
    • Create HTML Web Resource
    • In your form > Add Component > Display > HTML Web Resource
    • Place on the form like any other field, adjust height, etc.
     
  • Verified answer
    Daivat Vartak (v-9davar) Profile Picture
    4,720 Super User 2025 Season 1 on at
    Change Apply Button text from 'Apply' to 'OK'
    Hello HH-22102055-0,
     

    You've encountered a tricky situation with the "Apply" button text in a Business Rule recommendation within Dynamics 365/Power Apps. Unfortunately, you cannot directly change the text of the "Apply" button in Business Rule recommendations using standard customization methods.

    Here's a breakdown of why and potential workarounds:

    Understanding the Limitation:

    • Out-of-the-Box Component: The "Apply" button is part of the out-of-the-box recommendation control that's rendered by Dynamics 365 when a Business Rule recommendation is triggered.
    • No Direct Customization: Microsoft doesn't provide a supported way to directly modify the text of this button through form customizations, Business Rules, JavaScript, or other standard methods.
    • Hardcoded Text: The "Apply" text is likely hardcoded within the control's code.

    •  

    Workarounds (with Limitations):

    1. Custom Web Resource and DOM Manipulation (Unsupported, Risky):

      • Concept:

        • You could try creating a custom web resource (JavaScript) that runs on form load.
        • This JavaScript would use DOM manipulation to find the "Apply" button element and change its text to "OK". 

      • Implementation:

        • Create a JavaScript web resource.

        • Write JavaScript code to:

          • Find the button element (using its ID, class, or other attributes).
          • Change the innerText or textContent property of the button to "OK". 

        • Add the web resource to the form load event. 

      • Risks and Limitations:

        • Unsupported: This approach is highly unsupported by Microsoft.
        • Fragile: DOM manipulation relies on the structure of the HTML, which can change with Dynamics 365 updates, breaking your customization.
        • Security: Modifying the DOM can introduce security vulnerabilities.
        • Performance: DOM manipulation can impact form performance.
        • Maintenance: You'll need to maintain this customization with every Dynamics 365 update.

        •  
         

    2. Power Automate (Limited, Indirect):

       

      • Concept:

        • You could try using Power Automate to trigger actions based on the Business Rule recommendation.
        • Instead of relying on the "Apply" button, you could use a different mechanism (e.g., a field change, a button on the form) to trigger the Power Automate flow. 

      • Limitations:

        • This doesn't change the "Apply" button text.
        • It requires a different user interaction to trigger the action.
        • It's not a direct replacement for the "Apply" button's functionality.  

    3. Provide Feedback to Microsoft:

      • UserVoice:

        • Submit a suggestion to Microsoft's UserVoice (or similar feedback platform) requesting the ability to customize the "Apply" button text.
        • If enough users request this feature, Microsoft might consider adding it in a future update. 

      • Support Ticket:

        • You can also open a support ticket with Microsoft to request this feature.

        •  
          

    4.  

    Recommendation:

    • Avoid DOM Manipulation (Option 1): Due to the high risks and unsupported nature, avoid using DOM manipulation to change the "Apply" button text.
    • Power Automate (Option 2) is a limited workaround but might be suitable if you can change the user interaction flow.
    • Provide Feedback to Microsoft (Option 3) is the best long-term approach. Requesting this feature through official channels is the most likely way to influence Microsoft's product roadmap.

    •  

    In summary, you cannot directly change the text of the "Apply" button in Business Rule recommendations. The best approach is to provide feedback to Microsoft and explore alternative user interaction flows if necessary.

     
    If my answer was helpful, please click Like, and if it solved your problem, please mark it as verified to help other community members find more. If you have further questions, please feel free to contact me.
     
    My response was crafted with AI assistance and tailored to provide detailed and actionable guidance for your Microsoft Dynamics 365 query.
     
    Regards,
    Daivat Vartak
  • HH-22102055-0 Profile Picture
    73 on at
    Change Apply Button text from 'Apply' to 'OK'
    @Tom_Gioielli You are right. It's Recommendation action. The requirement is to just display the recommendation but not giving any action. So this sounds like a mission impossible. Even if I want to use javascript code  to customize it, I don't know where to apply since I cannot locate the Apply Button.
  • Suggested answer
    Tom_Gioielli Profile Picture
    1,073 on at
    Change Apply Button text from 'Apply' to 'OK'
    That looks to me like a Recommendation action coming in from a business rule. The only available configurations on there are the title and details of the item. You cannot change the "Apply" text on the button.
     
     
    If you want to have something different show, you may need to look for a Custom PCF Control that gives you some more flexibility on the recommendations action.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,361 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,510 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans