Forum Discussion

abhikhopade2109's avatar
abhikhopade2109
Copper Contributor
Jul 30, 2021
Solved

Yes/No Button value change

Hi Guys,

I am working with SharePoint Online and using PowerApps to set some rules. On my form I have 3 Yes/No buttons and I need just one of them should be 'Yes' and rest 2 should be 'No'.

At the beginning all should be by default 'No' (Which they are) but I would like to create scenario like this if I select first option Yes then remaining should be No

 

Thanks in Advance

 

 

 

  • abhikhopade2109 If your toggle buttons are called Toggle1, Toggle2 and Toggle3 for example then in the Default property setting for Toggle2 and Toggle3 you just need an if statement: If(Toggle1.Value=true, false,false). That sets Toggle2 and Toggle3 to No if the Toggle1 is Yes but otherwise keeps them at No.

     

     

     

    Rob
    Los Gallardos
    Intranet, SharePoint and Power Platform Manager (and classic 1967 Morris Traveller driver)

4 Replies

  • RobElliott's avatar
    RobElliott
    Silver Contributor

    abhikhopade2109 If your toggle buttons are called Toggle1, Toggle2 and Toggle3 for example then in the Default property setting for Toggle2 and Toggle3 you just need an if statement: If(Toggle1.Value=true, false,false). That sets Toggle2 and Toggle3 to No if the Toggle1 is Yes but otherwise keeps them at No.

     

     

     

    Rob
    Los Gallardos
    Intranet, SharePoint and Power Platform Manager (and classic 1967 Morris Traveller driver)

    • abhikhopade2109's avatar
      abhikhopade2109
      Copper Contributor
      Hi Rob,
      Sorry to get back to you again, Its working for just 2 buttons but 3rd one is giving me error about Circular reference.

      Regards,
      Abhijeet
      • RobElliott's avatar
        RobElliott
        Silver Contributor
        Then you must have made a mistake somewhere but you've not provided any screenshots so I can't tell what you've done.

Resources