Skip to main content
April 24, 2022
Question

dropdown

  • April 24, 2022
  • 5 replies
  • 1 view

Hi,

I have a dropdown with 2 values.

I have a scenario like once after selecting "Cancelled" I have to show a textfield to enter comments and save the details. This I am able to achieve.

But, at the same time I have to remove "Cancelled" option from the dropdown. When I am trying to do that I can getting below specified error.

ERROR:

code:

    5 replies

    Inspiring
    April 24, 2022

    Hi,

    Your question is not clear, when do you want to remove Cancelled option from selected drop down list after entering and saving comments?

    April 24, 2022

    After selecting "Cancelled", I am showing a a!textField, where user is entering Cancel reason. Now, after submitting the form, I should not show the "Cancelled" option anymore.

    But, with my current code, it was throwing an error after submitting the form.

    April 24, 2022

    some more additional details:

    More details. Local variables used to set the dropdown labels and values.