Hello,
I am currently developing a form application with similar functionalities as Typeform or Google Forms. Administrators can create forms and add fields of different types. On the form page, each field/question is presented in a RG, and each item contains different input fields shown based on the type of question.
Whenever a user changes an input, a new Answer (data type) is created and attached to the current field, which is then added to a custom state list of completed answers on the form page. If a user changes an input of a current field that already exists in the completed answers (each answer’s field list), then that Answer is updated according to the new input value.
Although this process works well, I am looking for a way to create the Answers data things only when the user clicks a “Save” button. My idea is to store the input values in separate custom state lists such as a list of texts, a list of numbers, and a list of dates. Then, I can use a Backend Workflow to create the Answers on button click.
Here are my questions for clarification:
- Can the Answers be created using Backend Workflow after the user clicks the “Save” button? If so, how can this be done?
- If a user changes an input value, what is the best way to select a specific text in a custom state of texts? Do I need a custom state with indexes?
If you have any suggestions on how to achieve this differently, I would be happy to hear them. Please let me know if you need any further clarification.
Best,
Niklas