Home › Forums › Ticket Products › Event Tickets Plus › Validate Input in Fieldset
- This topic has 5 replies, 2 voices, and was last updated 8 years, 7 months ago by
Schalk Joubert.
-
AuthorPosts
-
July 31, 2017 at 7:40 am #1328334
Schalk Joubert
ParticipantHi,
I realise the answer to this is not simple, and do not expect a complete answer, but hoping you can put me in the right direction.
In my Ticket Fieldset I have one Field asking for attendees “Client Number”
I want to then validate their input against a database of all “Client Numbers”Where to start mmm…
Thank you
August 1, 2017 at 12:51 am #1328637Schalk Joubert
ParticipantI see the number field set in admin-views/meta-fields/number.php is empty / not in use.
Is it possible to activate it? I can then maybe modify the number fields set to my needs.August 1, 2017 at 1:19 am #1328644Schalk Joubert
ParticipantThis is how far I got:
I do realise that all will be lost with a plugin update, but I’ll add it to the child theme later, if I get it to work.1.) Edit event-ticket-plus/src/admin-views/meta.php and add this code:
<li id="tribe-tickets-add-text" class="tribe-tickets-attendee-info-option"> <a href="#" class="add-attendee-field" data-type="text"><?php esc_html_e( 'FSP', 'event-tickets-plus' ); ?> <span class="dashicons dashicons-plus-alt"></span></a> </li>2.) Copy event-ticket-plus/src/admin-views/meta-fieds/text.php and save as fsp.php
3.) Copy event-ticket-plus/src/views/meta/text.php and save as fsp.php
4.) Add FSP fields set in ticket.
So it this stage, I simply created an additional text fields set.
Next is to compare the unput fields with a database of 200 rows, each row containing 6 digit numbers.
2nd prize would be to simply validate the input format by making sure it is only numbers and exactly 6 digits.
August 2, 2017 at 1:24 pm #1329709Shelby
ParticipantHey there,
Thanks for posting, & Iām happy to help. š
Unfortunately, this kind of request would requires some customization (which you’ve already started down that path, and done some great work – congrats!) We can’t provide support for these kinds of things on these forums. These forums are intended to troubleshoot issues and field bug reports with our plugins as configured with the latest version of WordPress, WordPress default themes, and our suite of plugins with their out of the box features.
However, we do have some resources for guidance in making some customizations here. If you need to find someone to help with the customizations, we also have some tips for finding help here.
Hope this helps, and thanks for understanding!
Best,
Shelby š
August 24, 2017 at 9:35 am #1339831Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Validate Input in Fieldset’ is closed to new replies.
