45
Views
4
Comments
how to input multiple list of feild in database
Question

HI, currently i will have one form that ask user to fill up. The form consists of 50 question and answer field. I has loop all the question by using a list instead of a form widget. But now my question is how do it recieve all the 50 answer from the input field and store them in a list then update to database ?


Screenshot 2023-07-10 100910.png
2019-09-24 18-41-25
Jorge Martins
 
MVP

Hi Andrew,

From your screenshot you actually have 65 questions... but regardless: the List's source, that contains all the questions shown on screen should also have an attribute for their individual answers, that you would bind to the Input so the user can fill it up.

Hope this helps!

UserImage.jpg
andrew siah

How do i link the submit button to fetch all of the answer that input in the field then submit ?


UserImage.jpg
Puja Rani

Hi @andrew siah ,

As correctly pointed by Jorge ,you must be having a list source for displaying questions and similarly have attribute that hold answer to each question. Use that list source on your submit button, with for loop to update the respective table. If it still does not clears then would ask to attach the oml file, so that we can see the implementation and suggest accordingly.

2023-05-08 05-34-05
Piyali Saha

Hi Andrew, 

You should use advanced SQL to add list of data to database at once. Hereby, I have mentioned the forum links for similar query:

https://www.outsystems.com/forums/discussion/74738/efficient-way-to-create-multiple-records/


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.