Need help with this error

Certified Senior Developer

Hi Everyone,

I am getting error in the dropdown field,
i have called 3 dropdown fields in interface level when i am selecting the value from 1st dropdown am getting error like this and this dropdown is 2nd and also i have passed the values and labels same only still i am getting error like this (the data is saving in the child records i have used parent records to pass the data to child )

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    Hi  ,

    Here’s what I understand from the attached query and snippet:

    Are you using dependent dropdowns? If the value of Dropdown 2 should depend on Dropdown 1 (i.e., the choice labels/values in Dropdown 2 change based on the selection in Dropdown 1), try setting the value of Dropdown 2 to null in the saveInto parameter of Dropdown 1. This will reset Dropdown 2 whenever the selection in Dropdown 1 changes.

    Alternatively, if it's just a single dropdown, you can try using a toString type cast or an if(isNull(val),{},val) statement to handle null values.

    Let me know if this helps! Or, if you're still facing issues, feel free to share the complete code snippet and provide a bit more context for a more detailed analysis.

Reply
  • 0
    Certified Lead Developer

    Hi  ,

    Here’s what I understand from the attached query and snippet:

    Are you using dependent dropdowns? If the value of Dropdown 2 should depend on Dropdown 1 (i.e., the choice labels/values in Dropdown 2 change based on the selection in Dropdown 1), try setting the value of Dropdown 2 to null in the saveInto parameter of Dropdown 1. This will reset Dropdown 2 whenever the selection in Dropdown 1 changes.

    Alternatively, if it's just a single dropdown, you can try using a toString type cast or an if(isNull(val),{},val) statement to handle null values.

    Let me know if this helps! Or, if you're still facing issues, feel free to share the complete code snippet and provide a bit more context for a more detailed analysis.

Children