Been thinking about this for a little bit and wondering if anyone has any good ideas.
How would someone build a “form builder” like Typeform in Bubble.
I played around with populating a repeating group with questions (created by the current user), and toggling dropdowns, single inputs, multi line linputs, etc based on what the current user wants…but I’m stuck since someone can’t add “responses” to those questions in the repeating group itself.
Question Type (e.g. short text, long text, number, date, date & time, image, file, yes/no etc.)
Data Types:
Question
Question (text)
Type (Question Type)
Response
Question (Question)
Type (Question Type)
Response Text (text)
Response Number (number)
Response Date (date)
Response Image (image)
Response File (file)
Response Yes/No (yes/no)
Respondent (User/Contact etc.)
You can use a RG to show the questions, with the relevant input types for each question type.
Then you just need a way to access the input value of each input in a workflow…
I use a simple custom state list of texts, to store the value if each input along with the relevant question (or existing response), and then create or modify the responses when the submit button is clicked.
Can anyone explain this part which seems the most critical… when form response inputs are in a repeating group, how do you pass the input text and related question together in order to create or modify the responses? States only allow one type of thing text OR Question so that doesn’t seem possible… also if the question is required vs optional that can’t be seen from outside of the RG in the workflow actions.
@adamhholmes any advice for me on how you accomplish updating answers as lists of texts along with the related question using a custom state? Not able to figure out how to pair the two and how to change the relevant answer if input changes and then create answers on submit button from the custom states…