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
Hi vineethk0001,
Use "placeholder" attribute to keep the user picker empty until user enter some other user.
a!pickerFieldUsers(label: "Requestor",labelPosition: "JUSTIFIED",maxSelections: 1,
placeholder:"--Select a user--",value: local!Applicant,saveinto: a!save(ri!Request_Inputs.Requestor,local!Applicant),required: true,validations: {})
Hope it helps!!
thanks for the reply Prateek , sorry but it dosen't work , as soon as i delete the autopopulated name , it comes back
Give below code a try..as it works for me.
a!pickerFieldUsers(label: "Requestor",labelPosition: "JUSTIFIED",maxSelections: 1,placeholder:"--Select a user--",value: if(isnull(ri!Request_Inputs.Requestor),local!Applicant,ri!Request_Inputs.Requestor),saveinto:{ri!Request_Inputs.Requestor,a!save(local!Applicant,null)},required: true,validations: {})
Hi Prateek, sorry , its not working, it gives an error as null value cannot be passed , when i cancel the autopopulated user