Can we change Section Name Dynamically?

kumarsatyam
Tera Expert

Dear SNOWers,

I have a requirement on which My Section Name would be changed by Default . Form is normal like Incident form.

I got some solutions but it not worked. EX : document.getElementsByClassName('navbar-title-caption')[0].innerHTML = "newsectioname"

Kindly provide some best and authentic solutions.

pradeepksharma vinitha david-smith ctomasi balajireddy Discuss

Regards Kumar

1 ACCEPTED SOLUTION

I mean the UI page stuff. Please create a fresh thread and I am happy to help.


Ok, I will consider this code.



Thank You,



Vinithabanu Kaliamurthi| Senior Application Software Developer | CDM Smith | Tel: (617) 452-7705 | e-mail: vinithabanuk@cdmsmith.com<mailto:vinithabanuk@cdmsmith.com>


View solution in original post

11 REPLIES 11

Hey Kumar,



In client script, you can get all sections of a form using g_form.getSections(). You can iterate over them and update the required sections "title"



var sections = g_form.getSections();


$j(sections[1]).find('.form_header')[0].innerHTML = "Title Changed"



Let me know if this helps.



Thanks


Naveen


Sorry it not worked.


vinitha3
Tera Guru

Am happy to help, but can you close the previous thread's answers as helpful or correct.



Thanks,


Vinitha.K


Sorry vinitha codes are not working . Can you please guide me.


I mean the UI page stuff. Please create a fresh thread and I am happy to help.


Ok, I will consider this code.



Thank You,



Vinithabanu Kaliamurthi| Senior Application Software Developer | CDM Smith | Tel: (617) 452-7705 | e-mail: vinithabanuk@cdmsmith.com<mailto:vinithabanuk@cdmsmith.com>