Forum Discussion
JimLieder2
7 years agoQrew Cadet
You can use a dynamic form rule to hide the button when the status is Approved.
Example: When Status is equal to Approved hide the Approval Button.
Or you can wrap your code in a IF statement to hide the button on the form when the Status is Approved.
If([Status]="Approved"," ",
URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&apptoken=5t39dmb9j59pjdz6mj9hd55p9rd&_fid_48=Approved&rid=" & [Record ID#] & "&rdr=" & URLEncode(URLRoot() & "db/" & Dbid() & "?act=dr&rid=" & [Record ID#])
)
Example: When Status is equal to Approved hide the Approval Button.
Or you can wrap your code in a IF statement to hide the button on the form when the Status is Approved.
If([Status]="Approved"," ",
URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&apptoken=5t39dmb9j59pjdz6mj9hd55p9rd&_fid_48=Approved&rid=" & [Record ID#] & "&rdr=" & URLEncode(URLRoot() & "db/" & Dbid() & "?act=dr&rid=" & [Record ID#])
)