Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    how select radio button dynamically

    Hi,

    Please help me on how can i select radio option dynamically when calling dynamicForm.fetchData()? If database column values matches with valueMap of radioGroup, the corresponding radio option will be selected or checked automatically. This is fine. If suppose i have mismatched values in DB and valueMap then how i can select radio option? Is there any other way to set explicitly?

    Code:
    isc.DynamicForm.create({
    	ID:"testForm",
    	width:100,
    	fields:[
    	{name:"test", title:"Single", type:"radioGroup", vertical:false, valueMap:"['Yes','No']" }
    	]
    })
    testForm.fetchData();
    Please look the above example. If i have values 'Y' or 'N' in database, how i can match with this radiogroup?
    Please suggest me

    Thanks
    Prabu

    #2
    Code:
    	fields:[
    	{name:"test", title:"Single", type:"radioGroup", vertical:false, 
             valueMap:{ Y:'Yes', N: 'No' } }
    	]

    Comment


      #3
      Thanks Isomorphic.

      Its working fine.

      Comment

      Working...
      X