Hi
Hoping the community can help me with an issue resetting a component gallery to neutral selection when a new form is submitted.
I have set up a survey using likert scale with emoji icons that are linked to hidden form fields, connected to a sharepoint list. All is working except for the form reset once the users submits their responses. What I would like is the form to reset from the success form button which says 'Take the survey'.
I have tried searching for solutions using the following actions, and even tried creating a button to clear the form with no luck.
- onselect
- reset form
- onvisible
I am sure the solution is very simple, I have just overlooked it.
When the app starts I create the following collection which sets up all the attributes.
ClearCollect(Moods,{Number:1,Icon:EmojiSad,Color:Color.Red});
Collect(Moods,{Number:2,Icon:EmojiFrown,Color:Color.Orange});
Collect(Moods,{Number:3,Icon:EmojiNeutral,Color:Color.Yellow});
Collect(Moods,{Number:4,Icon:EmojiSmile,Color:Color.LightGreen});
Collect(Moods,{Number:5,Icon:EmojiHappy,Color:Color.Green});
I set the colors using the gallery icon color attribute using
If(ThisItem.IsSelected,RGBA(255,255,255,1),ThisItem.Color)
Any help would be greatly appreciated.
Cheers
Janine