Why a field sometimes does nothing¶
Getting started
Now and then you will meet a field that is on screen, accepts a value, and changes nothing on the page. It is not a bug in the theme, and it is worth two minutes to understand, because it will happen again.
The short version¶
HubSpot decides whether to show a field using a list of conditions joined by a single and or a single or. One or the other, for the whole list. There is no way to group them.
So a rule like this is expressible:
show when the mode is Attach link and the card is on
And this one is not:
show when the mode is Attach link, or when the mode is No action and the per image checkbox is ticked
The second rule needs a bracket, and HubSpot has no brackets.
What we do about it¶
Where a rule cannot be written exactly, the theme uses the closest rule that is never wrong on the page, and puts the exact rule in the rendering code.
The result is a field that is occasionally visible when it has nothing to do. The page is always correct. The editor is sometimes more generous than it needs to be.
We prefer that to the alternative. The other option is to hide the field in a case where it is actually needed, and a control you cannot find is worse than one that waits quietly.
Where you will meet it today¶
Image Box, the link fields. Under What do you prefer on image click?:
| Mode | Link and Link title | Do they render |
|---|---|---|
| Attach link | shown | yes, the image becomes clickable |
| No action | shown | only when that image's Add link is ticked |
| Zoom image in popup | hidden | not applicable |
In No action with Add link unticked, the two fields sit there and draw nothing. Tick the box and they appear on the page. Nothing is broken, and filling them in early does no harm.
How to tell the difference¶
A field that does nothing because of this is always paired with a checkbox or a choice that explains it, and the module page says so. If a field does nothing and there is no such pairing, that is worth reporting.