How to use rbf_showOrHideSection without pain?

Posted by Rollbase User on 29-Jan-2011 20:55

I am having pain trying to use the function rbf_showOrHideSection(sectionId, showSection) My View page, my Edit page and my New record page, all use different IDs for the same corresponding section. Consequently, I have to maintain 3 different versions of the same JavaScript code but different IDs. Worse, when I synchronize the 3 pages after a design change, some of the section ID get changed. I then have to find the new IDs and change my code again. How can I get the section id dynamically (base on section name or any other method)? Can the change of section IDs be prevented when we synchronize page design? Thanks.

All Replies

Posted by Admin on 30-Jan-2011 15:12
Good point, I'll try to address this.
Posted by Admin on 10-Jan-2013 14:48
@Pavel -- I'm just now (Jan 2013) working to hide/show a section and expect to run into the same challenges Claude did in the past. Did you figure out a solution to this problem?
Posted by Admin on 10-Jan-2013 14:49
@Pavel -- I'm just now (Jan 2013) working to hide/show a section and expect to run into the same challenges Claude did in the past. Did you figure out a solution?
Posted by Admin on 10-Jan-2013 15:27
Please use rbf_getSectionIdByTitle() API to determine section's ID.
Posted by Admin on 10-Jan-2013 15:41
Ah! Perfect! Thanks!
Posted by Admin on 10-Jan-2013 21:36
Marking as Solved
This thread is closed