how do i validate field entry against entries from another form

By: Michael Boadi Nkansah | Asked: 09/08/2023
ForumsCategory: General questionshow do i validate field entry against entries from another form
Michael Boadi Nkansah asked 1 year ago
hi i am have 2 forms 1 for  user registration and the other for  service requests but they both base on generated receipt numbers. now am trying to prevent users from using the same receipt  to apply for another request from the second form. i need a way make the receipt number usable once. for instance if you use the receipt user registration, you cannot use it again for service request. 
1 Answers
Victor Font answered 1 year ago
Did you try making the field unique on the forms?
Michael Boadi Nkansah replied 1 year ago

yes i did. but the issue is that since there r two forms the use can still use the same receipt on the other form. using the receipt on the same for again does not work but it works with the second. that is what i want to prevent.

Victor Font replied 1 year ago

Make the field unique on both forms.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right