web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Radio buttons that don...
Power Apps
Answered

Radio buttons that don't reset

(0) ShareShare
ReportReport
Posted on by 12

Hello!

I have a cutsomer list and I want the reps to answer questions.

I take all my data from a Sharepoint list, and I also want to save answers to the same list (this part is working well).

 

My issue is that when a rep answered all question for one customer, and he switch to an other one, all radio buton stay selected, except if there is already a value for the question stored in my Sharepoint list.

See video for details: https://jmp.sh/s/PxzqK39DIe11F0AdvJks

 

Radio buton settings:

  • Item: ["1";"2";"3"]
  • OnChange:

 

Patch(
 'Market segment survey';
 LookUp('Market segment survey'; Client = Title2.Text);
 { Q1: Radio1.Selected.Value }
)



 

  • Reset: varReset
  • Default: LookUp('Market segment survey';Client=Title2.Text;Q1)

 

Save/Backup settings:

  •  OnSelect:

 

Refresh('Market segment survey');;
Set(varReset;false);;
Set(varReset;true);;
Navigate(Screen1)​

 

 

Have you any idea?

Thanks!!

Categories:
I have the same question (0)
  • Verified answer
    Micky Profile Picture
    365 Moderator on at

    Trye copying the code below in your App Onstart to make this a global variable

    Set(varReset, false);

    MMPoweR_0-1706803562228.png

     

  • Hugo68 Profile Picture
    12 on at

    I left all the other parameters as they were, and tried your suggestion.

    It doesn't work, same behavior.

     

    It's as if when I return to my questions screen, the default value is not taken into consideration because the corresponding field in my Sharepoint list is empty (because there's no problem when the list field is not empty).

    And since it's empty, it looks like it's going to look for the cached value, and therefore that of the previous client.

     

    Weird...

     

    EDIT : I tried to put this formula as Default setting for my radio buton, still doesn't work:

    If(LookUp('Market segment survey';Client=Title2.Text;Q1)="";Blank();LookUp('Market segment survey';Client=Title2.Text;Q1))
  • Micky Profile Picture
    365 Moderator on at

    May I ask if you try running the app onstart before testing?

    MMPoweR_0-1706805477593.png

     

  • Hugo68 Profile Picture
    12 on at

    Like that?

    https://filebin.net/snjqh7wcvaf3hqya/Video_2024-02-01_114859.wmv

     

    Same 😕

  • Micky Profile Picture
    365 Moderator on at

    That's invalid.

    MMPoweR_0-1706806636486.png

    use this

    Set(varReset, false);
  • Hugo68 Profile Picture
    12 on at

    That's only because I'm French:
    https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/global-apps

     

    Hugo68_0-1706810656241.png

     

  • Micky Profile Picture
    365 Moderator on at

    Can you try setting the varReset to Blank() just to remove the stored value of that variable and then set it again? You can create a test button and OnSelect use the code below, then re-test the app the same you tested it.

     

    Set(varReset,Blank());

     

  • Hugo68 Profile Picture
    12 on at

    I've tried several combinations, but it still doesn't work:

    https://filebin.net/z1j6c7afidcknrjn/Video_2024-02-01_134137.wmv

  • Hugo68 Profile Picture
    12 on at

    It worked! I only had to wait 24 hours for the change to take effect.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard