Jump to content

Recommended Posts

Posted

I am trying to use `showif` on a field accompanying an image field. It's supposed to only be present if an image was uploaded. So far, so easy. `image.count>0` does the trick. But when I open the page for editing, the field stays closed, even though an image was uploaded before.

What am I missing?

Thanks,

thomas

 

 

Posted

image.count is not a supported showif selector. The images field is not using an html inputfield, which would be countable by js. At least not without deep knowledge of the used markup.

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
×
×
  • Create New...