Hi I’ve added frontned reg form validation and conditional fields using java script and all works well..
Do you have any examples of how to run javascript in backend on certion espresso admin pages such as when adding a new registration…. then perhaps I can get the same script that sets values on fields based on others working in backend too.
There’s actually a filter that allows you to set the default value – FHEE__EE_SPCO_Reg_Step_Attendee_Information___generate_question_input__input_constructor_args
An example of using that filter to set a default value on the primary registrant using user_meta is here:
Although, another option to add your JS into the admin is to use wp_add_inline_script() and hook your script into ee-spco-for-admin meaning your custom JS will be output whenever ee-spco-for-admin is enqueued.
The support post ‘Default value for a custom field’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.