Hi there,
I want to see if retool can meet the requirements for what this project needs as it hasn't been clear from playing around with retool or by looking at the docs.
The retool app would be for creating and editing these custom forms.
I have an API for creating custom forms with a general hierarchy as follows:
Form => Form field category => Form field (of which there are many different types which require different input)
My API has been built in such a way that it just saves full forms - so when you make a request you are passing all data in instead of the single form field you would like to add / update / delete.
So there are a few things I haven't been able to figure out:
- How to handle the repeatable nature of the categories and form fields?
- Ideally there would be a button like "create new category" where you state the name and it gets added to the list of categories in the form
- Then you would click add new form field -> click they type you would like to add and then show the relevant fields for that form field and then click save which would add the form field to the category
I cannot see how to create repeatable blocks within repeatable blocks though? i.e. how could I have a repeating list of categories each with a repeating list of form fields nested within its category
- How to manage everything via local state
- On page load I need to run a request, transform the return into the data type I will store in "local state" and then store this value into local state and have the form read from this state and modify this state
- The reason for this is that the API requires a full form to be saved, you cannot edit individual categories or form fields
Is this doable within retool? If so can anyone suggest how to do the above points or where to look if its documented?
I'd prefer to use retool as it seems for dev focused than something like bubble.io but not sure if it can handle these requirements or not