Jump to content

Required only if … page published status?


suntrop
 Share

Recommended Posts

I want a field to be required only if the page is published. I tried published=1 published=true and status=published but seems to be not working like that. Any way I can bind the 'required if' on the page status? 

Link to comment
Share on other sites

13 hours ago, suntrop said:

I want a field to be required only if the page is published.

The core inputfield dependencies feature doesn't support this. It works via Javascript and can only read field values that exist in Page Edit - the published status is not one of those field values.

But the Custom Inputfield Dependencies module can help you out here.

2018-06-06_085055.thumb.png.d3b600c81a30b23eb027d84af14b31ae.png

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...