Code To Change Section Name

kumarsatyam
Tera Expert

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

15 REPLIES 15

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


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


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


output1.PNG


            OutPut.PNG



This is the exact output it is showing array of all sections. If you have any idea then please reply . Else i am looking for it and thanks again for your support.


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';


  }