picturepark

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • picturepark
    Participant

    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,
    Michael

    picturepark
    Participant

    Tried 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.
    in reply to: Add Event Form conflict with Raw HTML Pro plugin #1139393
    picturepark
    Participant

    Thanks 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

Viewing 3 posts - 1 through 3 (of 3 total)