Is it possible to create a button on a table that will open a section in that table and if you click the button again will it close the section?

  • 0
  • 1
  • Question
  • Updated 4 years ago
  • Answered
Thanks in advance
Photo of Kevin


  • 10 Points

Posted 4 years ago

  • 0
  • 1
You can have a form rule to open or close a section based on the value in a checkbox field.

Then in view mode you could show a button to change value of that checkbox field and refresh the record. 

Here is the formula for the URL button.  I prefer to use formula variables to keep the formula tidy.

var text NewToggleValue = If([ETA Toggle to trigger email/fax to dealer]=true,"0","1");

var text URLONE = URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&rid=" & [Record ID#]
 & "&_fid_269=" & $NewToggleValue;

var text URLTWO = URLRoot() & "db/" & dbid() & "?a=dr&rid=" & [Record ID#];

$ULRONE & "&rdr=" & URLEncode($URLTWO)

You will need to create a field on your table to be the checkbox field and put the Field ID# in where it says 269 above.