Skip to main content
Nintex Community Menu Bar
Question

Default boolean checkbox true or false with profile dependancy

  • July 11, 2024
  • 4 replies
  • 6 views

Forum|alt.badge.img+7

Senior Jisc Management profile should have a checkbox checked on new record load

Another profile should have the record unchecked on new record load.

How can this be easily achieved, without creating a new page?

I am open to the idea of using Javascript snippet on page load action if somebody can help me with the code, my example below isn’t working, and i’m not sure how to fix it! Thanks for your help

if ($User.Profile.Name == 'Senior Jisc Management') { var model = skuid.$M('Event'); var row = model.getFirstRow(); var alldayevent = true; model.updateRow(row,{IsAllDayEvent : alldayevent}); }<br>
This topic has been closed for replies.

4 replies

Forum|alt.badge.img+20

Replace $User.Profile.Name w/ skuid.utils.userInfo.profileName.


Forum|alt.badge.img+7
  • Author
  • July 11, 2024

hero! thanks very much


Forum|alt.badge.img+8

Model actions would work also… for those of us java challenged )


Forum|alt.badge.img+10
  • Nintex Employee
  • July 11, 2024

To build on David’s suggestion, you could set up a UI-only formula field that returns a checkbox. The formula could use the merge variables discussed here: https://docs.skuid.com/latest/en/skuid/merge-syntax/global-merge-variables.html#user

Namely, {{$User.profileId}} could be used with a CASE operation (see “CASE” and examples here: https://docs.skuid.com/latest/en/skuid/models/ui-only-models-fields.html#text-manipulation-and-analy…). 

The formula could look like this:

CASE(<b>{{$User.profileId}}</b>,"[add your 18-digit profile Id #1]", TRUE,"[add your 18-digit profile Id #2]", FALSE)