How can I set a text input based on a group being pressed?

Hello,

I have a fairly simple questionnaire form which is going to clients weekly.

There are a few areas where I want to use images etc to make the questionaire flow a little better, but I am stuck on how to make the pressing of a group make an input change within the same page.

eg click on group with a very sad face then Input A set to 1, click on group with a very happy face and Input A set to 5.

… I intend to make Input A hidden to the user.

Any help appreciated.

Thank you.

I am not a expert, but i would do this with custom states in the input. Create an state for the input with 5 options, like:

State = “feeling” Opt1 = “Very Sad” Opt2 = “Sad” …

Create a workflow, when “Very Sad image” is clicked, change the state of the input to option 1.

Make a conditional in the input like: When this input state is option 1.
Then Text = “Very sad”

Sorry for my english :smiley: this will work but idk if there is an easiest way to do it

1 Like

The way I see, if you set the state to number, you can do what you want and what gonzalo said easily.

So, when img 1 is clicked - Set state (choose an element to create the state) - Feeling = 1

You sending the form, then instead of taking the data from a input, you take from the state “feeling”

you can create the workflow manually, each image with its number, maybe it will be easier in your case

or you can create a Option set (on Data), then create each option with the image, respective number etc and on front end create a repeating group that take this search

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.