Forum Discussion
MCFNeil
9 years agoQrew Captain
If your [Employee Name] field is a User field, then you can do it by making the formula cantain an if that evaluates the current user:
If([Employee Name]=User(), "My button formula for employee agrees goes here", "")
That will show the button for only the user in the employee agrees section, otherwise it will be blank.
If([Employee Name]=User(), "My button formula for employee agrees goes here", "")
That will show the button for only the user in the employee agrees section, otherwise it will be blank.
- AndreonnaGarret9 years agoQrew Assistant CaptainSorry, I am really quite new at formulas in QuickBase. How would I add this additional IF function to my current formula? The formula currently in the button is:
var text url =
If([Employee Agrees Check]=false,
URLRoot() & "db/" & Dbid() & "?a=API_EditRecord" &
"&rid=" & [Record ID#] &
"&apptoken=cp2kg3vbugcf22bd656gmp4udhs" &
"&_fid_9=true");
If([Employee Agrees Check]=false,
"<a class=\"Vibrant Primary\" href=\"javascript:" & "$.get('" & $url &
"', function(){" & "location.reload();" & "});" &
"void(0);\">Employee Agrees</a>"
) - MCFNeil9 years agoQrew CaptainPut it before your second section.... with a slight change
If([Employee Name]=User() AND [Employee Agrees Check]=false,
"<a class=\"Vibrant Primary\" href=\"javascript:" & "$.get('" & $url &
"', function(){" & "location.reload();" & "});" &
"void(0);\">Employee Agrees</a>",
""
) - AndreonnaGarret9 years agoQrew Assistant CaptainThank you! This appears to have worked perfectly!