Forum Discussion
ZintJoseph
8 years agoQrew Captain
You could create a formula text button to change a hidden checkbox to yes or no and collapse the sections based on a form rule on the condition of the checkbox. Simply create a button and checkbox for each section.
Just do a case or if formula
Just do a case or if formula
ZintJoseph
8 years agoQrew Captain
Yes you can hide a section...your code in your button would be press to hide, press to unhide....
Something like this
If([Project Checkbox] = false,
"<a class='Vibrant Success' href='" & Dbid() & "?a=API_EditRecord&rid=" & [Record ID#] & "&apptoken=your app token&_fid_44=1"'>Close Section</a>",
"<a class='Vibrant Success' href='" & Dbid() & "?a=API_EditRecord&rid=" & [Record ID#] & "&apptoken=your app token&_fid_44=0"'>Open Section</a>"
)
The fid is the field ID of the checkbox
Your form rule would be to hide that section when the box is checked. When the button is pressed again, the box would be unchecked, the rule would see false and open the section. The code above is to edit the record. I have not tried this but it should work. Probably need to take out the edit record part since you are not actually editing the record only closing the section.
The Project Checkbox field would have to be recreated for each section with a different name and you would need a button and form rule for each section
Something like this
If([Project Checkbox] = false,
"<a class='Vibrant Success' href='" & Dbid() & "?a=API_EditRecord&rid=" & [Record ID#] & "&apptoken=your app token&_fid_44=1"'>Close Section</a>",
"<a class='Vibrant Success' href='" & Dbid() & "?a=API_EditRecord&rid=" & [Record ID#] & "&apptoken=your app token&_fid_44=0"'>Open Section</a>"
)
The fid is the field ID of the checkbox
Your form rule would be to hide that section when the box is checked. When the button is pressed again, the box would be unchecked, the rule would see false and open the section. The code above is to edit the record. I have not tried this but it should work. Probably need to take out the edit record part since you are not actually editing the record only closing the section.
The Project Checkbox field would have to be recreated for each section with a different name and you would need a button and form rule for each section