Adding Placeholder text to Attendee field

Home Forums Ticket Products Event Tickets Plus Adding Placeholder text to Attendee field

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1151911
    Ken Wee Chew
    Participant

    Please help me in adding placeholder text to the attendee fields.

    #1151960
    Geoff B.
    Member

    Good evening Ken and welcome back!

    Thank you for reaching out to us.
    I would love to help you with this topic.

    As a first step, could you please provide us with your complete system information in a private reply using the instructions found in the following link?

    https://theeventscalendar.com/knowledgebase/sharing-sys-info/

    Secondly, there is currently no built-in way to add placeholder text in the additional attendee info fields.

    But I can totally see how that would be a great feature. I would encourage you to suggest that very feature here: https://tribe.uservoice.com/forums/195723-feature-ideas

    That being said, that could probably be accomplished via a snippet placed in your theme’s functions.php in the meantime.
    Something jQuery based should do the trick. Have a look at the following snippet (to adapt) as a starting point: https://gist.github.com/GeoffEW/b12ecb9a75b8ad2210e18183ffc96205

    Let me know if that helps.

    Have a great day!

    Geoff B.

     

    #1152036
    Ken Wee Chew
    Participant

    This reply is private.

    #1152115
    Ken Wee Chew
    Participant

    I have basic knowledge on jquery. I have even added the placeholder in dev tools and checked. Could you assist me exactly where I have to place my code? Doesn’t work when inserted in theme’s funtions.php

    #1152188
    Ken Wee Chew
    Participant

    I am also trying this code

    jQuery(‘#tribe-tickets-meta_business-phone’).prop(“placeholder”, “Type your phone number”);

    I found the id from dev tools. Not sure about the placement of code though.

    #1152441
    Geoff B.
    Member

    Good evening Ken,

    Thank you for writing back and for providing the system info.

    Before we begin, as a disclaimer, I simply want to point out that officially we do not support QTranslateX as a multilingual solution compatible with our plugin.
    That does not necessarily mean that they won’t work together (many of our customer have successfully done that). But it means that, at least for now, we are focusing our efforts on WPML compatibility as a multilingual solution.

    With that in mind, I would like to get you started on the right track.
    The simplest way to do that would be to send me a copy of your WordPress theme / child theme in a .zip file link (via Dropbox or Google Drive) so that I can run some tests on my end ? Normally, the correct place to put the snippet would indeed be in your theme’s functions.php

    What would also be super helpful is if you had an example (URL) of a ticket with additional attendee fields.
    That way my advice would be more personalized.

    In the meantime, here is some recommended reading on that very topic: http://stackoverflow.com/questions/12993130/how-to-add-a-placeholder-attribute-if-value-field-is-empty

    Best regards,

    Geoff B.

     

    #1154792
    Ken Wee Chew
    Participant

    This reply is private.

    #1155236
    Geoff B.
    Member

    This reply is private.

    #1157436
    Geoff B.
    Member

    This reply is private.

    #1157848
    Geoff B.
    Member

    This reply is private.

    #1166987
    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 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Adding Placeholder text to Attendee field’ is closed to new replies.