Preview of Form

41 views
Skip to first unread message

Kumar Gaurav

unread,
May 29, 2021, 1:51:51 PM5/29/21
to Django users
Hi All,

How to show a preview of the form filled before submitting. I don't want to edit the form in preview but just to see how it will be submitted. 

Can Django form tools will help or should I use Jquery or Javascript for this purpose. Please suggest a better solution.


Thank You

pankaj palmate

unread,
May 29, 2021, 2:41:10 PM5/29/21
to django...@googlegroups.com
Yes using javascript 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6a392a73-4f99-4d58-8501-780ba1cf14b7n%40googlegroups.com.

Jim Illback

unread,
May 29, 2021, 6:45:34 PM5/29/21
to Django Users
If I understand you correctly, you have an add (or update) form and you want to see what those fields would look like in a preview display (like a paper form equivalent). I would use an add/update form to input the data fields. At the bottom have 2 buttons: one would do the add/update without preview and one would show the preview display. The fields could be sent over in context or even stored in a temp row of a holding table. Then, on the preview page, you format the preview appropriately. You could have 2 buttons: one to accomplish the update as is and one to return to the previous page so changes could be made. With all this, you stay within Django and maintenance is simplistic, too.

Hope I understood your situation. If not, just ignore this.

Jim

Reply all
Reply to author
Forward
0 new messages