How to save the answers of all questions from a Repeater of Accordion comp by REST API #15394
Replies: 1 comment
-
The specific setting you're looking for is covered in Conditions: https://docs.budibase.com/docs/conditions A quick overview:
With the Button component selected, in the settings panel on tthe right, click "Conditions" Add a condition to hide the component if the field is empty for each field. Now if any of the fields are empty, the button will be hidden. Please note the evaluation of an empty field happens "on blur", so it is possible to fill out a field and only when the focus leaves the field will the button appear. You may also be better off setting the field's validation to "required" for each field. |
Beta Was this translation helpful? Give feedback.
-
Hi All,
I am having below case to try to integrate Repeater of the Accordion form with REST API, but I am struggling a bit.
Use Case: We have a list of questions displayed by Accordion component for each question (data source from REST API). Moreover, in each Accordion, users can answer there. After finishing all questions, user will be allowed to submit their answers. This submitted action will call API to answer into database, known that API request only allows to send the answer of one question at a time
Current idea: We use Repeater component to list all questions from API. Accordion component would display each question with options Yes/No + Note for users to answer. There will be a Submit button only visiable after users complete all questions.
However, with current idea, I am struggling:
Hope someone has similar use case or Budibase guys could help. I am really appreciated!
Beta Was this translation helpful? Give feedback.
All reactions