Form field visibility rule on hover off | Community
Skip to main content
Diego_Lineros2
Level 5
January 21, 2021
Solved

Form field visibility rule on hover off

  • January 21, 2021
  • 1 reply
  • 4475 views

Hi community, before I start writing any JS, has someone already solved the issue with field visibility rules where you have to click out of the field to make the dependant fields to appears, instead of "on hover off"?
For example:

If first name is not empty show last name.

Currently you type in "first name ", but only until you click somewhere else out of it, "last name" appears. I just want on hover off the firts name, the would be nice to add a JQ "slow" or somenthing....

Plase save me some time... 😉

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

Well hover:off isn't an actual event (in DOM terms). I think you mean mouseleave.

 

Certainly possible, but you would need to drive the visibility entirely using custom JS. The built-in Visibility Rules can't be used for this (and should be turned off to avoid confusion).

1 reply

SanfordWhiteman
Level 10
January 21, 2021

You really want hover, not focus?

Diego_Lineros2
Level 5
January 22, 2021

Yes, I think :hover off is the best experience as :focus will behave like it is at the mement "Tab" key

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
January 22, 2021

Well hover:off isn't an actual event (in DOM terms). I think you mean mouseleave.

 

Certainly possible, but you would need to drive the visibility entirely using custom JS. The built-in Visibility Rules can't be used for this (and should be turned off to avoid confusion).