Use of editor.dependent afer editor.clear and editor.add
Use of editor.dependent afer editor.clear and editor.add
I define in editor a hidden "response" field which in editor.open I delete and regenerate with the same name but different type (text, radio, etc...) using editor.clear and editor.add.
But now I would like to parse the contents of the "response" field before filling in the subsequent fields but editor.dependent does not work.
How can I do this?
Thank you,
Giuseppe
This question has an accepted answers - jump to answer
Answers
I have this field that is deleted and added dynamically:
On "open" of Editor I do this (also replacing "dependent" with jQuery):
On "close" of Editor I do this:
You can also shove "dependent" into an event handler like this which could also be an option for you:
Thank you for your response.
In my case I can't use 'initCreate' because all the rows in the table have already been generated, so I work everything in 'Edit'.
Can I use the same system?
Giuseppe
Sure, why not. Just use an event handler that works for you.