Hi All,
i have a PickerFieldUser, which am auto-populating, but the user can cancel the auto-populated value and key in other entry,
auto-populating the user field is working fine, how can i make the field null when the user takes out the auto-populated data and key in his data, below is my code,
item: a!pickerFieldUsers( label: "Requestor", labelPosition: "JUSTIFIED", maxSelections: 1, value: local!Applicant, saveinto: a!save(ri!Request_Inputs.Requestor,local!Applicant), required: true, validations: {} )
Thanks in advance
Discussion posts and replies are publicly visible
Ok. Assuming your form is being loaded in a User Input Task in a Process you can set the default value of the User being captured in the Task Activity Class variable (set to fn!loggedInUser()) so that your rule input has this value when the form is loaded. You can then let the User delete it and then select any other User they are allowed to select, saving the value to the same rule input.
sure, thanks a lot, will give this a try
Hello Vineeth,
Give this code a try, It will work for you
a!pickerFieldUsers( label: "Requestor", labelPosition: "JUSTIFIED", maxSelections: 1, value: local!Applicant, saveinto: { local!Applicant, a!save(ri!Request_Inputs.Requestor,local!Applicant) }, required: true, validations: {} ))
Thanks Vivek