Forum Discussion
QuickBaseCoachD
6 years agoQrew Captain
np,
Just put an IF around your code in the button. If a URL formula calculates to null, then the button will be invisible.
for example
your code probably looks like this
URLRoot() & "db/" & [_DBID_CHECKIN] & "?a=API_GenAddRecordForm&_fid_11=" & URLEncode ([Patient ID#])& "&z=" & Rurl()
so make it look like this
IF([Status] = "Inactive, "",
URLRoot() & "db/" & [_DBID_CHECKIN] & "?a=API_GenAddRecordForm&_fid_11=" & URLEncode ([Patient ID#])& "&z=" & Rurl()
)
Just put an IF around your code in the button. If a URL formula calculates to null, then the button will be invisible.
for example
your code probably looks like this
URLRoot() & "db/" & [_DBID_CHECKIN] & "?a=API_GenAddRecordForm&_fid_11=" & URLEncode ([Patient ID#])& "&z=" & Rurl()
so make it look like this
IF([Status] = "Inactive, "",
URLRoot() & "db/" & [_DBID_CHECKIN] & "?a=API_GenAddRecordForm&_fid_11=" & URLEncode ([Patient ID#])& "&z=" & Rurl()
)