I am trying to enable a button for only our mid level providers.My initial idea was to use USER_JOBTITLE but enable disable expression needs to evaluate to a boolean and I am not quite sure how to get there.
You could try placing the button in a visibility region then returning true if it is a mid level provider and false if not. This would leave a blank space for other users, but if placed properly it should be minimal.
In your visability field, you can run a boolan expression to compare USER_JOBTITLE() to a specific string. here is the code I am using for my own forms.
USER_JOBTITLE() == "Information Systems"
This gives me access to test fields that I don't want any users besides IT to see. if your mid-levels have multiple titles, you can use an OR statement to evaluate all the possibilities:
USER_JOBTITLE() == "Physician Assistant" OR
USER_JOBTITLE() == "ARNP" OR...
Let me know if you need further clarification. this is a great way to limit who can actually see and use a button or field. 🙂
Visibility region it is! Thanks for the help.
Use the same syntax that you would use for the visibility, which also evaluates to a boolean value. Just remember to code it using only true statements (i.e. title equals value or title equals title 2).
You could use visibility region or enable/disable code. The syntax should be identical for both.
Accepted since this is what I was going for. I just forgot the 'or' between my statements initially. Thanks.