Skip to main content
Inspiring
Apr 24, 2022 9:53 PM UTC
Question

dropdown

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
    Apr 24, 2022 10:15 PM UTC

    Hi,

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

    Inspiring
    Apr 24, 2022 10:19 PM UTC

    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.

    Inspiring
    Apr 24, 2022 10:28 PM UTC

    some more additional details:

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