suntrop Posted June 5, 2018 Share Posted June 5, 2018 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 More sharing options...
PWaddict Posted June 5, 2018 Share Posted June 5, 2018 The Inputfield Dependencies page doesn't say anything about the published status so I guess it isn't possible. You might be able to do what you want with a hook. 1 Link to comment Share on other sites More sharing options...
Robin S Posted June 5, 2018 Share Posted June 5, 2018 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. 2 Link to comment Share on other sites More sharing options...
suntrop Posted June 6, 2018 Author Share Posted June 6, 2018 Thanks, I put in a hook. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now