Support

Home Forums Event Espresso Premium Date picker Billing Form

Date picker Billing Form

Posted: March 18, 2024 at 5:13 pm

Viewing 5 reply threads


zorrove

March 18, 2024 at 5:13 pm

Hello

What would be the best way to show a date picker input in the billing form using the EE4 Forms System? i cannot find anything but year or month options.

regards,


Sam

  • Support Staff

March 19, 2024 at 12:12 am

Hi There,

To add the date picker to the billing form you need to go to EE > Registration form > There you can select the question type as date picker:
https://tinyurl.com/2chk9dfz

Then you can edit any question group or create a new question group and assign the question there: https://tinyurl.com/286frvnq

Then you can edit the event and there you can select the question group and select the question group to show in the checkout form.
https://tinyurl.com/225a8xey

Hope that helps.


zorrove

March 19, 2024 at 9:01 am

Sorry i may not explained my self correctly i needed this for a new custom payment method. is akready solved this way

‘transfer_date’ => new EE_Text_Input(array(
‘required’ => true,
‘display_strategy’ => new EE_Text_Input_Display_Strategy(‘date’),
‘default’ => date(‘Y-m-d’),
‘validation_strategies’ => array(new EE_Text_Validation_Strategy(),
new EE_Max_Length_Validation_Strategy(null,’10’),
),
‘html_label_text’ => __( ‘Fecha que realizó el pago’, ‘event_espresso’ )
) ),


Tony

  • Support Staff

March 19, 2024 at 1:25 pm

Hi there,

So your using a text input with a date format?

Did you not want a Datepicker?

new EE_Datepicker_Input($input_constructor_args)


zorrove

March 19, 2024 at 10:37 pm

Hi Tony

i didnt find EE_Datepicker_Input in the documentation… i will change my code

thanks,
SM


Tony

  • Support Staff

March 20, 2024 at 4:00 am

Yeah, some of our documentation could do with an overall and we have a ticket to work on it.

The best place to look is within the codebase itself, all of out input classes are within:

\event-espresso-core\core\libraries\form_sections\inputs\

But if I can help point you in the right direction with them I’m more than happy to do so 🙂

Viewing 5 reply threads

The support post ‘Date picker Billing Form’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso