• Resolved amandinemrl

    (@amandinemrl)


    Hello,

    I will keep displaying a field on the registration form based on the event name, however this code does not work:

    Can you help me please ?

    function my_custom_field($fields) {
    $event_id = isset($_REQUEST[‘event_id’]) ? absint($_REQUEST[‘event_id’]) : 0;
    $event = get_post($event_id);
    $event_title = $event ? $event->post_title : ”;

    // Ajoute un champ de formulaire supplémentaire si l’événement est “Mon événement”
    if ($event_title === ‘Name of Event’) {
    $fields[‘mon_champ’] = array(
    ‘label’ => ‘Mon champ’,
    ‘type’ => ‘text’,
    ‘required’ => true,
    ‘placeholder’ => ‘Entrez une valeur’
    );
    }

    return $fields;
    }
    add_filter(‘eventin_booking_form_fields’, ‘my_custom_field’);

    Thanks a lot,

    Regards,

    Amandine

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support A Zaman Sagor

    (@azamansagor)

    Hi @amandinemrl

    Greetings from the Eventin Team. Thanks for reaching out to us. 

    Hope you are doing well. We have already replied to your ticket. Please check your ticket’s reply. 

    We have to try it on our setup first. After that, we can confirm with you about it. So you have to allow us some time. And we will give you an update.?

    We appreciate your query. If you have any further queries then you can follow our PINNED post and reach us so that we can help you with additional steps.

    Hope you can understand.

    Thanks for being with us and thanks for your patience.

    Best Regards

    Plugin Support A Zaman Sagor

    (@azamansagor)

    Hi,

    Can you please confirm us where did you find the filter name “eventin_booking_form_fields”?

    Regards

    Thread Starter amandinemrl

    (@amandinemrl)

    Hello,

    Thank you for your feedback, do you know how soon this will be effective ?

    I don’t remember where I found this hook, I found it on the web, do you have any suggestion about it ? Should I use another hook ?

    Thank you so much,

    Best regards,

    Amandine

    Plugin Support A Zaman Sagor

    (@azamansagor)

    Hi,

    We don’t have this hook “eventin_booking_form_fields”. And we don’t have any hooks for overriding the registration form like your code. For that, we can not help you because code customization is out of our policy.?

    So, we will suggest you hire a developer and you can modify what you want. And if your idea gets more upvotes then we will develop your requirement solution in the future.

    Hope you can understand. 

    Thanks for being with us. Good day!

    Best Regards

    Thread Starter amandinemrl

    (@amandinemrl)

    Hello,

    Can you tell me the name of the file that contains the participant form and that I can modify ?

    Thank you,

    Regards,

    Amandine

    Plugin Support A Zaman Sagor

    (@azamansagor)

    Hi,

    Here is the ticket form file: https://prnt.sc/jtiYxo0CN7L3?

    Your ticket registration form can be edited from this file. But for editing your site can be broken if you are not good enough at programming. We wouldn’t take any responsibility if editing the plugin’s code breaks any website functionality.

    Hope you can understand.

    Thanks for being with us, Good Day!

    Best Regards

    Hello, I need this type of resource for the participant form! I need a code that creates fields with dynamic visibility according to what is marked, or with types of people

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Add field on register form attendee’ is closed to new replies.