318
Views
7
Comments
Solved
how to add form fields on click of a button?
Application Type
Reactive
Service Studio Version
11.53.26 (Build 61639)

I have two input textbox for "Question" and "answer" field, on click of add button i want two more textbox for same fields. Like wise i wanted to add n number of fields and at the end on click submit i want to store the data in to database.

2020-08-31 05-04-40
Rahul Jain
Solution
UserImage.jpg
vikas sharma
Champion
Solution

Hi,

Please find attached OML for your reference.

regards

QuestionAnswer.oml
2026-03-12 06-20-48
KUNDAN CHAUHAN
Champion
Solution

Hi Shree harsha,

I create a demo oml as your requirnment .

Please check it , hope it help you.

Demo https://personal-ddjq2r3a.outsystemscloud.com/ButtonVisible/MultipleFileUpload?_ts=638052495557376186

Kind Regards,

Kundan Chauhan


MultipleFileUpload,.oml
UserImage.jpg
vikas sharma
Champion

Hi,

As per my understanding easiest will be to manage this using a List. Create one list of structure (Question, Answer). In this list add one element it will show your first question. Now when user click on Add button, you needs to add one more question answer structure in the list. So now you have 2 elements in the list it will show 2 question answers on the screen. 

regards

UserImage.jpg
Shree harsha

Hi vikas,

I am new to outsystems so i don't know how to achieve what you mentioned.

Can you please elaborate the steps.

2020-08-31 05-04-40
Rahul Jain

Hello Shree ,

I think , you want to add multiple option for question and it should save in database as per my understanding. 

Please check demo by below link and attached oml file.

https://rahul-jain-doitlean.outsystemscloud.com/Form/Home

Thanks

--RJ--


Form.oml
UserImage.jpg
Shree harsha

Hi Rahul,

I want to add/generate both question and answer field on click of "add" button

2020-08-31 05-04-40
Rahul Jain
Solution
UserImage.jpg
vikas sharma
Champion
Solution

Hi,

Please find attached OML for your reference.

regards

QuestionAnswer.oml
2026-03-12 06-20-48
KUNDAN CHAUHAN
Champion
Solution

Hi Shree harsha,

I create a demo oml as your requirnment .

Please check it , hope it help you.

Demo https://personal-ddjq2r3a.outsystemscloud.com/ButtonVisible/MultipleFileUpload?_ts=638052495557376186

Kind Regards,

Kundan Chauhan


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