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

I have Checked and Alert is not working . I have found that Section Name should not have Space otherwise it is Not working . I just checked in sample table . Section without space (Section Name A) changed its name while Section Name having Space (B 1) not worked so it seems its all about space . In HTML code Section Name is showing as B  1. I am checking for the solution. Thanks for your all effort.



Regards Kumar


Yes, space can be there but consider below,



Regarding the name I found the following



1. Everything needs to be lowercase


2. The first space needs to be an underscore


3. All subsequent spaces need to be removed.


4. special characters for example / need to be removed.



For example: THIS good/bad Name --> this_goodbadname



Thanks,


Vinitha


Thanks but i checked it is not working when we write if(caption.innerHTML == "round_1") instead of if(caption.innerHTML == "Round 1") .



So i think above naming convention is not enough for this.



It is also not going inside


$$('.tab_caption_text').each(function(caption) {


    this statement . I am looking for it . If it not works then i have to go for another approach to implement this.


Did you try to get the name from DOM explorer?


It is throwing an error.



err.PNG




VM1462:1 Uncaught TypeError: $$(...).each is not a function


      at <anonymous>:1:25(anonymous function) @ VM1462:1


js_includes_ngCommon.jsx?v=03-22-2017_2340&lp=Thu_Mar_30_09_04_03_PDT_2017&c=16_270:11630 snPresence response time 553ms