Dynamic controls

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

kotinkarwak
Ebase User
Posts: 109
Joined: Mon Sep 21, 2015 9:55 pm

Dynamic controls

#1

Postby kotinkarwak » Sat Apr 16, 2016 9:56 am

Is it possible to create controls dynamically at run time?
Scenario.
Need to build a page with variable number of controls (composite) to denote an examination. Since the type of questions can vary and will be determined at run time via a selection from the database, I would have say a Yes/No question, a multiple choice question and a "fill here" type question. Is this possible?
0 x
ebasetech v5

Skype: mateso08
Location: Kenya

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Mon Apr 18, 2016 8:17 am

The answer to your question is no, you can't create controls dynamically.

But of course you can add rows dynamically to a table. I think I would solve your problem by putting the questions in a table and then displaying the table with a Repeater Control. In each row you could add fields for each type of question e.g. dropdown, radio button, data entry etc then hide/show the appropriate field for each row.
0 x


Who is online

Users browsing this forum: No registered users and 17 guests