Dropdown - resets to placeholder label on out of focus

I have a dropdown in my page which is set to required and I have a placeholder for it. Every time I choose a value and move the cursor out it is refreshing and getting back to placeholder label. I have provided my code below. Please advise.

a!dropdownField(
  label: "Department",
  labelPosition: "ABOVE",
  helptooltip: "",
  placeholderlabel: "--- Choose your Department ---",
  choicelabels: {
    "IT",
    "Office"
  },
  choicevalues: {
    "IT",
    "Office"
  },               
  saveInto: ri!Order.department,
  required: true,
  validations: {}
)

  Discussion posts and replies are publicly visible

Parents
  • Hi Kalpana,

    To give more context on this,

    Once you selected the Choice label from the drop-down , corresponding choice value will be saved into "Value" parameter(can be local variable/rule input). The same/any modified value can be saved into "SaveInto" parameter using a!save .

    For all the user interacted fields both Value and SaveInto should be passed , whereas for readonly , only value is fine , corresponding value need to be saved while submitting the form or in the process.

    Thanks
    Siva
Reply
  • Hi Kalpana,

    To give more context on this,

    Once you selected the Choice label from the drop-down , corresponding choice value will be saved into "Value" parameter(can be local variable/rule input). The same/any modified value can be saved into "SaveInto" parameter using a!save .

    For all the user interacted fields both Value and SaveInto should be passed , whereas for readonly , only value is fine , corresponding value need to be saved while submitting the form or in the process.

    Thanks
    Siva
Children
No Data