Validate Input in Fieldset

Home Forums Ticket Products Event Tickets Plus Validate Input in Fieldset

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1328334
    Schalk Joubert
    Participant

    Hi,

    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

    #1328637
    Schalk Joubert
    Participant

    I 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.

    #1328644
    Schalk Joubert
    Participant

    This 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.

    #1329709
    Shelby
    Participant

    Hey 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 šŸ™‚

    #1339831
    Support Droid
    Keymaster

    Hey 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

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Validate Input in Fieldset’ is closed to new replies.