Change Button Text - Attach and New

Posted by IramK on 05-Mar-2015 09:54

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? 

Posted by Orchid Corpin on 05-Mar-2015 10:40

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

Posted by Orchid Corpin on 05-Mar-2015 10:40

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

Posted by IramK on 05-Mar-2015 11:18

Thanks [mention:e6fb884e9c7b45a2a638966c06dc0941:e9ed411860ed4f2ba0265705b8793d05] . That's helpful. Hope this feature becomes available in the future.

Posted by Orchid Corpin on 05-Mar-2015 11:36

You're welcome! :)

Regards,

Orchid

Posted by jsniemi79 on 05-Mar-2015 11:43

Orchid,

Can you apply the same logic to a Submit button?

Posted by jquerijero on 05-Mar-2015 12:41

Assuming you only have one form;

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

Posted by Orchid Corpin on 05-Mar-2015 12:51

Hi jsniemi79,

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

Regards,

Orkid

Posted by IramK on 26-Jun-2015 10:18

I have posted this in the ideas section as well:

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

Posted by IramK on 15-Jul-2015 07:25

Attached image as an example:

This thread is closed