PDA

View Full Version : Radio button and dynamic Form



abdulabi
22 Jul 2008, 2:52 AM
Hi all,
i've got a problem. i'v tried to search the forum but i cudnt find anything. :/ so the issue is that i've got to create a kind of dynamic form that using a JSON reponse will show a custom form with a Template.
so for instance we have the following JSON:



[
{
name: 'Option 1',
desc: 'Select option 1',
value: '123'
},
{
name: 'Option 2',
desc: 'Select option 2',
value: '95'
},
{
name: 'Option 3',
desc: 'Select option 3',
value: '147'
},
{
....
}
]
and what i need to have is a sort of the form that will show a three (or more) radio buttons (Option 1, Option 2, Option 3) and description field (or additional fields returned by JSON, HTML formatted) by the title.. I've tried to use XTemplate, but there I can only format a HTML code, and I'm not able to add eg. radio button or stuff...
Any ideas? Thank you in advance..!

abdulabi
22 Jul 2008, 6:12 AM
....anyone..? cud u just tell me whether extjs provides such a kind of functionality?