Forum Replies Created
-
AuthorPosts
-
May 24, 2017 at 8:07 pm in reply to: Entering 0 for Free events on front-end submission form ERRORs #1288698pictureparkParticipant
Hi Victor,
Thanks that seems to work, however the cost field is now not marked with an asterisk like the other required fields, and upon validating, it puts the note at the top, but the field below is not highlighted, so it’s not as easy to spot what the error refers to when scrolling down.
Is there anyway to also correct those issues too, so it behave like the regular required fields?
Thanks,
MichaelMay 23, 2017 at 9:03 pm in reply to: Entering 0 for Free events on front-end submission form ERRORs #1288133pictureparkParticipantTried editing the above, but ran out of time. I added that we’d used the following function from this Knowledgebase to set the required fields: https://theeventscalendar.com/knowledgebase/required-fields-for-events-submission-form/#default-fields
`add_filter( ‘tribe_events_community_required_fields’, ‘my_community_required_fields’, 10, 1 );
function my_community_required_fields( $fields ) {
$fields = array(
‘post_title’,
‘post_content’,
// ‘EventCost’,
‘EventURL’,
‘EventStartDate’,
‘_ecp_custom_5’,
‘_ecp_custom_12’,
‘_ecp_custom_13’,
);return $fields;
}`Did something change to break this function?
I’ve commented out the ‘EventCost’ line for now to prevent the error. If there is no other fix, we’ll need to edit the line below — “Leave blank to hide the field. Enter a 0 for events that are free.” — to have people enter “Free”, which it seems to take with the field set to required.
Thanks,
Michael- This reply was modified 6 years, 11 months ago by picturepark.
pictureparkParticipantThanks for checking.
Yes. The Raw HTML PRO developer got back to me with a patched version of the plugin this morning, and will be releasing it in its next version.
-Michael
-
AuthorPosts