Code To Change Section Name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2017 12:18 AM
Hello vinitha,
Here we can discuss.
I have three sections R1,R2 and R3.
When my form loads there is a field which fetches New Section name from another table (Config table)
Only i have to do is Whenever form loads R1,R2 and R3 should be changed by that New Section Names which will come from Config Page .
Please help from a beginning.
Regards,
Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2017 01:15 AM
Kumar Satyam - Can you mark it as correct answer?
Happy that it has helped you.
If you are viewing this from the community inbox you will not see the correct answer button. If so, please review How to Mark Answers Correct From Inbox View
Thanks,
Vinitha.K
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2017 02:21 AM
Thanks . In Application Scope will above code also work or we need to do something different. Because it is not working in Application Scoped tables.
Thanks Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2017 02:50 AM
Hi Kumar,
The code applies to all and there is nothing to do with data.
In scoped app table, still there should not be any issues?
Try debugging or out alerts() and check whether the code is getting trigerred.
Thanks,
Vinitha.K
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2017 03:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2017 03:58 AM
So there are 7 elements with this span class.
Inside "if" put an alert message and check whether it works.
$$('.tab_caption_text').each(function(caption) {
if(caption.innerHTML == 'R1'){
alert(caption.innerHTML);
caption.innerHTML = 'NewR1';
}
