>>One is ItemTreeRequired and another is Location Key required. So, when I select Mode which required Item Tree selection I need to make sure that something is selected in the ItemTree drop down (and it's not that 'Select ...' option). If the location Key required, I need to generate a key as well.
>>
>>So, that's what I am supposed to program. I am not yet having an idea of how exactly.
>
>I suppose a directive on the itemTree select would be possible - but a bit complicated since it's action would depend on the ItemTreeRequired property of the selected item in the first dropdown.
>
>Probably simplest to watch for changes on the first select and dynamically add or remove the 'Select Item Tree' option as required - basically using a variation of the javascript I posted ?
Hi Viv,
I don't want to dynamically add or remove option. I want this option to always be there, but somehow make sure that another option is selected when it's required. I don't think we need a directive, I think we can go with a form's code.
If it's not broken, fix it until it is.
My Blog