disabling a multifield based on selection


hi  rush_pawan,


i have 3 tabs dynamically created of ur suggestion given above. works fine.

 

i have requirement. if select 1 tab amongt three, there drop down list values , multifield(textbox). if select particular value in drop down list multifield should diasbled.

 

it works dialog of xtype dialog.

 

function(box,value){var ans = box.findparentbytype("dialog").form.findfield("anstext"); disableanstext(ans,value);}

function disableanstext(ans,value)

{

   if(value == "date") {

                    alert("anstype value - "+value);

              ans.setdisabled(true);

    }

 

}

 

now have 3 tabs in dialog of xtype tabpanel. how can achieve same tabpanel.

 

thanks. of great help  if answer this.

hello mini,

 

i hope have written listener on component want track event (for example multifield), if case please search parent xtype (same above) lets "panel" xtype if tab has xtype "panel" , use box.findparentbytype("panel").form.findfield("anstext"); (i hope have mentioned have used tabpanel insided tabpanel have multiple tabs).

 

let me know if doesn't helped or issue.

 

also plz refer http://dev.day.com/docs/en/cq/current/widgets-api/index.html more inforamtion related xtype , methods/events associated.

 

thanks,

pawan



More discussions in Archived Spaces


adobe

Comments

Popular posts from this blog

Joomla 3.3 Installation Error message - Joomla! Forum - community, help and support

Multilanguage infinite redirect loop error. - Joomla! Forum - community, help and support

trim media limit reached