Custom Fields
Re-Envisioned
Support Meta Box Conditional Logic "before" => "text" how do you hide it?

This topic contains 2 replies, has 2 voices, and was last updated by  Anh Tran 1 year, 2 months ago.

  • Creator
    Topic
  • #10257
    Resolved
    Alexander Krosnowski
    Participant

    I am using this to hide a fleld; however, the “before” text is not hidden:

    'hidden'    => array (
        'when'  => array (
            array (
                'static_or_rand',
                '=',
                'rand',
            ),
        ),
    ),
Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #10258

    All other aspects of the field hide, except the “before”

    #10273

    Anh Tran
    Keymaster

    Hi Alex,

    The “before” is not a part of the field and thus, it cannot be controlled by the conditions.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.