Scribus Forums

Development => Features => Topic started by: evkrishna on August 21, 2013, 03:50:51 pm

Title: Validation on save form
Post by: evkrishna on August 21, 2013, 03:50:51 pm
Hi experts,

I designed a pdf form using SCRIBUS. Now i need to check required fields while saving the form. Please provid solution for validating fields while saving form.

Thanks and regards
E V Krishna
Title: Re: Validation on save form
Post by: GarryP on August 21, 2013, 04:00:20 pm
Hi E V.

This should help: http://wiki.scribus.net/canvas/Your_second_PDF_form_with_Scribus_%28and_Javascript%29

However, read this too: http://forums.scribus.net/index.php/topic,861.0.html for some known issues.

Good luck.
Title: Re: Validation on save form
Post by: evkrishna on August 21, 2013, 04:21:07 pm
Thanks for Your response.
Can you provide me a solution that validate the fields while saving pdf document.

Thanks and regards
E V Krishna
Title: Re: Validation on save form
Post by: GarryP on August 21, 2013, 04:59:19 pm
Sorry, I mis-read your question. (My brain's not properly "in gear" today.)

I'm afraid I can't help you there. I don't think Scribus has any functionality in that area. I could be wrong though.

Would you really want to require field validation on save anyway?

For example, what would happen if someone was filling in the form but couldn't remember some details and wanted to save it until they could get the info? If you made that field mandatory before you could save the form and the reader didn't have that information to hand then they couldn't save the form. So they'd have to discard all of their changes and fill it all in again later. Not very user friendly.

I'd say that you'd be better putting the validation on a button instead of forcing it on save. That's just my opinion though.

Maybe someone else can help you better.
Title: Re: Validation on save form
Post by: evkrishna on August 21, 2013, 05:07:20 pm
Thanks for your response again.
I went across the validate through button. But our requirement is to validate on Save.

Thanks and regards
E V krishna
Title: Re: Validation on save form
Post by: evkrishna on August 22, 2013, 10:31:34 am
Hi Experts,
I have seen so many pdf form allowing to validate the form during save event.

I tried this with all posibility, but not able to find the solution.

Atleast can u provide the base where i will start to write functionality on page save.