Can you Conditionally Change the Options of an Image Type?
Last updated: May 24, 2022
can you conditional change the options of an image type ?
May 24, 2022, 4:55 PM
What do you mean?
May 24, 2022, 5:06 PM
umm if i defined a field under the type image. there is an option to highlight the field or not. can this be conditionally changed (optionally change isHighlighted between true and false)? below is a field example
Because of the way the schema is compiled, I believe you'd need to use the hidden callback. Similar to this previous thread.
May 24, 2022, 6:10 PM
I thought about that but my document has multiple fields that is typed ‘illustration’ and I cannot distinguish them from each other based on document / parent… am i approaching this wrong?
May 24, 2022, 6:16 PM
for helping with this. We have decided to keep the field highlighted if there is no good work around. The only alternative that I can think of is to define more schema to accommodate the variance… which is probably not worth it if it’s just highlighting a field or not…