Skip to main content
1-Visitor
July 27, 2018
Question

Clear the radio button option

  • July 27, 2018
  • 3 replies
  • 1854 views

How can I clear the radio button selection by clicking on the currently selected option in radio button ?

Please check the attached image file for reference

    3 replies

    16-Pearl
    July 30, 2018

    Hi @Shrikant ...

    I don't think it's possible. I couldn't empty it with the on-board methods and services.

    I've also tried using an Expression Widget to overwrite the state and set an Output forces a non-selected state for the Radio Button Widget - but haven't really figured it out yet.

    I'd say it's a limitation to the Widget, that once it's set it can't be unset.

    16-Pearl
    July 30, 2018

    Depending on the use case you could add an additional state (selected by default) e.g. "No Selection" - and if this is selected, it will not change / trigger dependent actions...

     

    Seems like there already exists an enhancement for introducing this functionality.

    https://www.ptc.com/en/support/article?n=CS260155

     

    I'll add a reference to this thread to the request as well...