jugnoo_jee Posted April 20, 2009 Share Posted April 20, 2009 Hi guys, I am developing a small ticket system, at one point client wants to add multiple comments along with types before completing a ticket. for example there is one form has some necessary info time of call, ticket title, ticket status and at the end submit/update button but client need to add comment box so he/she can add comments by click add button and in bottom show the all comment of this particular ticket, remember add button won't effect on submit/update button. I've separate comment, and comment type tables, where I can store comments with ticket foreign key, I know I can't use nested html forms, any other idea or solution, any help would be appreciated Thanks Quote Link to comment https://forums.phpfreaks.com/topic/154926-nested-forms-alternative/ Share on other sites More sharing options...
rhodesa Posted April 20, 2009 Share Posted April 20, 2009 where are your input fields for the comments? if it were me, i would probably make a Modal Dialog, where the HTML for it was after the main form. then, have a button in the main form called Add Comment, that uses JavaScript to show the modal dialog for the comment Quote Link to comment https://forums.phpfreaks.com/topic/154926-nested-forms-alternative/#findComment-814894 Share on other sites More sharing options...
jugnoo_jee Posted April 20, 2009 Author Share Posted April 20, 2009 where are your input fields for the comments? if it were me, i would probably make a Modal Dialog, where the HTML for it was after the main form. then, have a button in the main form called Add Comment, that uses JavaScript to show the modal dialog for the comment but How I will reference ticket id to the comments, Quote Link to comment https://forums.phpfreaks.com/topic/154926-nested-forms-alternative/#findComment-815000 Share on other sites More sharing options...
rhodesa Posted April 21, 2009 Share Posted April 21, 2009 as a hidden input element Quote Link to comment https://forums.phpfreaks.com/topic/154926-nested-forms-alternative/#findComment-815177 Share on other sites More sharing options...
jugnoo_jee Posted April 21, 2009 Author Share Posted April 21, 2009 as a hidden input element I know I can use hidden type but, remember ticket still submit yet.. Quote Link to comment https://forums.phpfreaks.com/topic/154926-nested-forms-alternative/#findComment-815702 Share on other sites More sharing options...
jugnoo_jee Posted April 21, 2009 Author Share Posted April 21, 2009 as a hidden input element What about using tab layout , comment could a tab itself and ticket is one tab , can we transfer ids (variables) between tabs ? Quote Link to comment https://forums.phpfreaks.com/topic/154926-nested-forms-alternative/#findComment-815750 Share on other sites More sharing options...
rhodesa Posted April 21, 2009 Share Posted April 21, 2009 where is the ticket id in the main form? Quote Link to comment https://forums.phpfreaks.com/topic/154926-nested-forms-alternative/#findComment-815783 Share on other sites More sharing options...
jugnoo_jee Posted April 21, 2009 Author Share Posted April 21, 2009 where is the ticket id in the main form? yes it is Quote Link to comment https://forums.phpfreaks.com/topic/154926-nested-forms-alternative/#findComment-815864 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.