change dynamically section label
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2017 03:05 AM
hi,
i want to change my section label in a client script after a condition any one knows how to do it ????
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2017 03:26 AM
Hi,
You need to use DOM manipulation for achieving the same.Have implemented a similar functionality for dynamically changing the Container Name based on different choice Value of a Variable. If you want to do this on a form, you can give a try writing an On change Client Script on the field on which you want to change the Value to as per the script below:
Script:
var x = document.getElementById("Mention Element ID");
x.querySelector(".form_header").textContent = "New Section Name";
You can also check the below thread and response from Mark on the same:
To change Form Section label dynamically
Hope this helps.Mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2017 03:38 AM
hi Shloke Srivastava,
i tried the code u give me but it didn't work , i want actually to change my section label if the condition is true an it didn't work for me
thanks,