Quantcast
Channel: Adobe Community : Popular Discussions - CQ5 (read only)
Viewing all articles
Browse latest Browse all 12476

disabling a multifield based on selection

$
0
0

Hi  rush_pawan,


I have three tabs dynamically created with the help of ur your suggestion given above. It works fine.

 

I have another requirement. If i select one tab amongt the three, there is a drop down list with values and a multifield(textbox). If select a particular value in drop down list the multifield should be diasbled.

 

It works well for a 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 i have 3 tabs in a dialog of xtype tabpanel. How can i achieve the same with the tabpanel.

 

Thanks. It would be of great help  if i get an answer for this.


Viewing all articles
Browse latest Browse all 12476

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>