Dynamic form with Form Helper + Scripting? |
[eluser]brucebat[/eluser]
Hey all, I am wanting to design a dynamic form that will have a logic like this. This is pseudo code for what needs to be implemented Code: Get all rows in department table. I am using CI's form helper but I have no idea how to implement the rest does anyone have any links to documentation or sample code which would help. I guess I will need to use scripting so if anyone knows any links for scripts that would be great too. as well to implement it but I was wondering if CI has any features that I could use to speed up development for this form? Thanks for your time!
[eluser]adityamenon[/eluser]
http://www.9lessons.info/2010/08/dynamic...using.html http://tinyurl.com/5ux8ego
[eluser]brucebat[/eluser]
Thanks How would I generate more textbox fields automatically when the user completes a field. e.g. user completes textbox id=2 , script generates another textbox id=3, until user leave textbox x blank. Sorry for my ignorance but I have never done a form like this before. Thankyou
[eluser]adityamenon[/eluser]
Actually, this a Javascript problem. Please research more about Javascript. The time investment you make now will be better than fumbling and stumbling through your form project. However, that advice is useless if you need the work finished yesterday ![]() http://tinyurl.com/3ely34j Good luck.
[eluser]brucebat[/eluser]
Okay So basically this is what I had originally planned. Quote:CI Form Helper + Scripting --> CI Controller Validation --> CI Model --> Database However this what you are recommending I do. Quote:Scriped form --$_POST--> CI Controller Validation --> CI Model --> Database I have a few days to get a prototype together for this, but Im still on the fence about this as the form is going to be quite long and varying and I am worried that script to CI might cause problems. Forgive me if I seem a bit reluctant to dive in as I am "REALLY" in the dark about what is the right way to go about this for me and the client. Thanks for your time. |
Welcome Guest, Not a member yet? Register Sign In |