Change Button Text - Attach and New - Forum - Rollbase - Progress Community

Change Button Text - Attach and New

 Forum

Change Button Text - Attach and New

This question is answered

Hello,

Is there a setting in Rollbase where I could go and change the text that appears for the Attach and New button when we have a related Object? 

Verified Answer
  • Hi Iramk,

    There is no current functionality that can do this since by default it is named after the Object name. Option is rename the related object and if you want to rename these buttons without renaming the object this can be an enhancement to the product which you can file it in the ideas page here.

    Here is also a workaround via code to rename the buttons which you can use. Change the following:
    New Section             -- > your section name of the related list view
    Attach Warehouse -- > the attach button
    New Warehouse     -- > the attach button

    <script>
    $(document).ready(function() {
    	$("div[name='Related Section'] a:contains('Attach Related')").text("Attach Object");
    	$("div[name='Related Section'] a:contains('New Related')").text("New Object");
    });
    </script>

    Hope this may help.

    Regards,

    Orchid

All Replies
  • Hi Iramk,

    There is no current functionality that can do this since by default it is named after the Object name. Option is rename the related object and if you want to rename these buttons without renaming the object this can be an enhancement to the product which you can file it in the ideas page here.

    Here is also a workaround via code to rename the buttons which you can use. Change the following:
    New Section             -- > your section name of the related list view
    Attach Warehouse -- > the attach button
    New Warehouse     -- > the attach button

    <script>
    $(document).ready(function() {
    	$("div[name='Related Section'] a:contains('Attach Related')").text("Attach Object");
    	$("div[name='Related Section'] a:contains('New Related')").text("New Object");
    });
    </script>

    Hope this may help.

    Regards,

    Orchid

  • Thanks . That's helpful. Hope this feature becomes available in the future.

  • You're welcome! :)

    Regards,

    Orchid

  • Orchid,

    Can you apply the same logic to a Submit button?

  • Assuming you only have one form;

    $("input[type='submit']").attr("value","New Label");

  • Hi jsniemi79,

    I may have same solution as with jquerijero. Thank you for sharing your idea to the community :)

    Regards,

    Orkid

  • I have posted this in the ideas section as well:

    community.progress.com/.../change_button_text_-_attach_and_new.aspx

  • Attached image as an example: