Saturday, May 29, 2021

Re: Preview of Form

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

On May 29, 2021, at 11:40 AM, pankaj palmate <pankajpalmate61333@gmail.com> wrote:

Yes using javascript 

On Sat, 29 May, 2021, 11:22 pm Kumar Gaurav, <gauravcusat1999@gmail.com> wrote:
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

--
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+unsubscribe@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.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPyMU1%2BBmf1%3DN1h2Mxdu1oUa1JZvH%2B0%3DbyYvS7CsGohAvY6gOg%40mail.gmail.com.

No comments:

Post a Comment