I’d like to use a UI-only field in a snippet. How can I get the current value? I’ve tried this (where ‘CoverageNurse’ is the Field ID of the Ui-Only field)
var params = arguments 0];
var $ = skuid.$;
var models = skuid.model.map();
var newTeamMembers = models.NewCoverageTeam;
…
{ field: ‘MemberId’, value: newTeamMembers.CoverageNurse }
Page 1 / 1
Assuming that your newTeamMembers model only has 1 row in it and that’s the row you’re interested in pulling the value of your NewCoverageTeam Ui-Only field off of, you could do this:
{ field: ‘MemberId’, value: newTeamMembers.getFieldValue(newTeamMembers.getFirstRow(),“CoverageNurse”) }
That works perfectly - thank you!
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.