Autopopulate to become null on cancel

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

Parents Reply
  • Hi Stewart, my requirement is , on form load the "PickerFieldUser" will be populated with Default user(Logged in user), say "User1" will be populated, now the user who is filling the form can keep this "User1" or delete it and add "User2".

    now whats happening is , on form load am able to populate "PickerFiledUser" with Defalut User(Logged in user),

    but if the user wants to change this value and try to remove the default value to put "User2" into the field, its not leaving to do so, since as soon as i remove the defalut user, an event occurs by default (UNFOCUS or Keypress) which will again populate the "User1" into the field, not leaving me to key in "User2", 

    hope i was able to explain it properly 

    Thanks in advance

Children