Skip to main content

Hi everyone,

I have 2 table : QUESTION(qid, q_detail), ANSWER(aid, qid, a_detail). I want to create a survey by using editable list view(or any possible control)  in smartform. The survey will list all questions and their answers(as radio button list). But in listview, the radio button is only displayed when it's in edit mode and the edit mode is only available PER LIST ITEM and WHEN USER CLICK ON IT.

Is there a possible way to load question with answer as radio button list at initial time for all question?

Example:

 

Question number 1 content            14533i80D5EFECC258FA23.png Answer1    14533i80D5EFECC258FA23.pngAnswer2     14533i80D5EFECC258FA23.pngAnswer3

Question number 2 content            14533i80D5EFECC258FA23.png AnswerA    14533i80D5EFECC258FA23.pngAnswerB     14533i80D5EFECC258FA23.pngAnswerC

Question number 3 content            14533i80D5EFECC258FA23.png AnswerD   14533i80D5EFECC258FA23.png AnswerE    14533i80D5EFECC258FA23.pngAnswerF

Question number 4 content             14533i80D5EFECC258FA23.pngAnswerG    14533i80D5EFECC258FA23.pngAnswerH   14533i80D5EFECC258FA23.png AnswerI    14533i80D5EFECC258FA23.pngAnswerJ

 

 

Any help would be really appreciated.

Thank you so much.

TP.

Hi,

 

Take a look at this documentation: 

 

http://help.k2.com/onlinehelp/K2smartforms/UserGuide/1.0.7/default.htm#SF_-_ViewControls_-_Radio_Button_List.html%3FTocPath%3DK2%20Designer%7CViews%7CFields%2C%20Methods%20and%20Controls%7CControls%7C_____12

 

It details specifically details how you can use the radio control. As well as how you can apply a specific ruleset for the control.

 

http://help.k2.com/onlinehelp/K2smartforms/UserGuide/1.0.7/default.htm#SF_-_Rule_Designer_-_Conditions.html%3FTocPath%3DK2%20Designer%7CRules%7C_____3

 

Regards 

 

Peter


Hi Peter,

Thank you for your links. I've read them. I can display the question and their answer from database on list view. The only one thing I can't do is the radio button list only display when I click on any row of list view cause by that time the list view went into edit mode. The list view by itself can't have any control on it except the DataLabel. If you want to put controls on list view you have to put it on edit mode.

 

Best Regards,

TP


Reply