PDA

View Full Version : Form bind: two disabled config in same bind



josei
15 Feb 2015, 10:12 AM
Hi!

In the following example, when I write in the first textfield, the second textfield is enabled, and when i write in second, the third is enabled.


The opposite process (clear fields) also works well.


The problem is when, after writing in the three fields, I clear the first textfield, and only the second is disabled, remaining the third enabled.


We can have two disabled config in the same bind?
How?


{
publishes: 'value',
bind: {
// disabled: '{!text1.value}', //NOT OK with two disabled config
disabled: '{!text2.value}'
}

Fiddle:

https://fiddle.sencha.com/#fiddle/i9u

Thanks in advance?

jsakalos
16 Feb 2015, 2:13 AM
You need to implement a formula. See this example (http://extjs.eu/ext-examples/#bind-grid-form) - it is not exactly what you want but it can give you some ideas

josei
16 Feb 2015, 5:00 AM
Thanks Saki.

I will try to find a solution from the study of your example.