PDA

View Full Version : How can I dynamically generate a form like a fill in blank question



2 Jul 2014, 11:52 PM
The problem is like this, I want to dynamically generate a form fragment based on a template and the variable metadata used for choose correct input component and do validation.But the problem is the input component should be embedded in the sentences where the place holder of the template resides, not like ordinary form component which is always after a label.Does anyone know how to archive this?

Gary Schlosberg
10 Jul 2014, 2:12 PM
I found this thread, but I don't think it will help much:
http://www.sencha.com/forum/showthread.php?160352

I don't think this is possible with just configurations. You would have to noodle with renderers and perhaps utilize configurations like beforeLabelTpl and afterLabelTpl, but it will likely be pretty messy as it is not currently designed to operate that way.