Home › Forums › Quform WordPress › Causes Validation for the save button
- This topic has 3 replies, 3 voices, and was last updated 7 years, 5 months ago by
Ally.
- AuthorPosts
- August 15, 2016 at 8:26 pm #19668
perlaravi
ParticipantHi,
I am in need of two buttons on my QUform page, like “Save Draft” and “Save Final”.
The “Save Draft” should ignore the required fields and “Save Final” should verify the required field values whether it is filled the data or not, if not raise the required field exception before submit to the server.for ex: in ASP.NET we use CausesValidation=false for the button property to ignore the required fields .
Can some please suggest me on this how to get this done?
Thank you in advance.
RAVI PERLAAugust 17, 2016 at 8:54 pm #19687Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
December 4, 2017 at 5:35 am #23308Venom
ParticipantHi Ally,
I want to know how can I trigger the pre_validate hook, when the user clicks on “Save Draft” element (I want to be a button without submit action). If the “Save Draft” is the submit button, it would go through the validation process and insert the record to the Entry table and it would send out an Auto reply email.
Instead, I want to insert the record to my custom database table only. Until the user clicks “Confirm”, then the record would be inserted to the Quform Entry table and sent out Auto reply email.
Regards,
Venom
December 7, 2017 at 7:16 pm #23376Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- AuthorPosts
- You must be logged in to reply to this topic.