Custom Fields
Re-Envisioned
Support General Wysiwyg Required Validation Not Working

  • Creator
    Topic
  • #20646
    ossama saeed
    Participant

    Hi Guys,

    the required validation not working with wysiwyg editor, it works only if i switched to the text tab, but with visual tab it is not working at all.

    
    $meta_boxes[] = array(
        'id' => 'news_event_meta',
        'title'      => 'Events',
        'post_types' => 'news',
        'priority'   => 'high',
        'visible' => [ 'slug:tax_input[news-categories]', 'in', [ 'events' ] ],
        'fields' => array(
            array(
                'name' => 'Event Agenda ?',
                'id'   => 'event_agenda_check',
                'type' => 'checkbox',
                'std'  => 0, // 0 or 1
            ),
            array(
                'name'  => 'Agenda',
                'id'    => 'event_agenda',
                'type'  => 'wysiwyg',
                'raw'     => false,
                'visible' => array( 'event_agenda_check', true ),
                'required' => true,
            ),
        )
    );
    

    Thank you for you hard work.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #20648
    Long Nguyen
    Moderator

    Hi,

    I’m going to check it out and let you know later.

    Thank you.

    #20761
    ossama saeed
    Participant

    Hi,

    Any updates ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.