HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Search
-
How to save form data thru multiple models
I have a form based on a model. I'd like to save the form values as usual, plus some parts of the form to another table for which I have another model. I'd like to handle this 2 "DB operation" as a single transaction so if something bad happens to any of them I could rollback. So, in pseudo-code-like written: try… -
Re: How to save form data thru multiple models
Back to this... I have created the 2 forms since then, of course... What I found now is that if you put multiple forms on the same page, though you can create different form IDs for the different forms, finally, every single form will have an input field with the ID Form_hpt and another with the ID Form_TransientKey, so… -
Re: How to save form data thru multiple models
-
Re: How to save form data thru multiple models
-
Re: How to save form data thru multiple models
No. I've already checked that. As you can see in the generated code below, only Form ID gets 'MyPrefix', input IDs stick without getting 'MyPrefix'. <form id="Form_MyPrefix" method="post" action=""><div><input type="hidden" id="Form_TransientKey" name="MyPrefix/TransientKey" value="KFTBQ..."><input type="hidden"…
5 results