Custom form with transient fields and custom javascript
Posted: Mon Mar 07, 2011 9:06 am
Hello.
I have a particular case in which I need to implement a javascript active form. The form will have much of the standard layout associated with the use of Xataface (fields.ini, valuelists, etc...). However, one particular table's form needs to have a special section that will hide and unhide nested forms in a div (probably by ID) depending on what you choose in the form. I have no problem copying the standard header template over to the custom area and associating a private javascript to include. However, how do I create transient forms that are nested in my own Div IDs that will be controlled by my transient/delegate calls?
To ease this, I was wondering if it is it possible to insert a block of html of my own in a form? One that contains transient fields directly related in the fields.ini. I would then use the delegate class to work on code to handle data entry of the transient fields. The tricky part is being able to include my own section of form data in the data entry form.
I look forward to your help.
Kind regards,
Frank
I have a particular case in which I need to implement a javascript active form. The form will have much of the standard layout associated with the use of Xataface (fields.ini, valuelists, etc...). However, one particular table's form needs to have a special section that will hide and unhide nested forms in a div (probably by ID) depending on what you choose in the form. I have no problem copying the standard header template over to the custom area and associating a private javascript to include. However, how do I create transient forms that are nested in my own Div IDs that will be controlled by my transient/delegate calls?
To ease this, I was wondering if it is it possible to insert a block of html of my own in a form? One that contains transient fields directly related in the fields.ini. I would then use the delegate class to work on code to handle data entry of the transient fields. The tricky part is being able to include my own section of form data in the data entry form.
I look forward to your help.
Kind regards,
Frank