Can we disable one selection from a drop down list

Hi Team,

In a security question and answers module , I have a requirement where on selection of few options the drop down value needs to be enable and disabled.

Please let me know if this would be possible.

1 Like

I fear its not possible in Axure without using any script.
You have to go for work around like creating custom widgets.

Yes Pratik, I thought the same. Are you aware of any such script?

Hi!

You can disable items in a regular dropdown using javascript. You can add javascript to your Axure file by putting it the URL of the Open Link in Current window command.

This file disables a dropdown option. The javascript assumes the dropdown is called “myDroplist” and the item is called “B”. Edit the javascript to use your dropdown’s name and which item(s) you want to disable. (Copy and past the disabling line to disable multiple items.)

[Edit] Don’t include spaces in the name of your dropdown, just to avoid needing to put it in quotes in the Javascript. Oh, and I forgot the semi-colon at the end of the line; you’ll need that if you are putting in multiple disable commands. I’ve updated the file:

disable dropdown item.rp (45.9 KB)

5 Likes

Thanks. It worked :slight_smile:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.