Support » Fixing WordPress » WP Media Modal Caption – making a field required

  • Hello,

    I need to make Attachment Caption field in “WP Media Modal” as required. If field is empty I must disable “Set featured image”/”Select” button? Is this possible and how?

    • This topic was modified 2 years, 1 month ago by vallter2.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Without a link to the site in question or screenshots of what you are talking about it is going to be nearly impossible for anyone to help you.

    Thread Starter vallter2

    (@vallter2)

    Thank you for comment. I need to disable button “Select” if field Caption is empty…
    https://i.ibb.co/TTSpqS6/wp.jpg

    That will require custom coding and a custom plugin. I am not sure there is anything that already exists that will do that. It should be possible though.

    Thread Starter vallter2

    (@vallter2)

    Any documentations how to get the values from Caption field with JavaScript… I’m tried with jQuery but without success.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WP Media Modal Caption – making a field required’ is closed to new replies.