You are viewing limited content. For full access, please sign in.

Question

Question

Forms Designer Field Tooltip

asked on April 3

I'm trying to add a custom tooltip (custom HTML field with CSS styling), because the built-in tooltip doesn't allow HTML styling. I can't get the actual tooltip window to appear over everything (like the built-in tooltip). It seems to be inheriting the field height.

Here's my HTML on the field:

<div class="tooltipT">(?)
  <span class="tooltiptext">Date Requisition Requested – When the Recruitment Request Intake Form was submitted or recruitment was requested (if form was not used)<br>    Date Requisition Opened – When the requisition was created in ATS and began accepting applications.<br>    Date Requisition Placed on Hold – When the requisition changed to "limited access," stopping new applications.<br>     Date Recruitment Completed/Filled – If filled, enter the last hire’s start date; if closed without hiring, enter the closure decision date. </span>
</div>

And the associated CSS:
 

/* Tooltip container */
.tooltipT {
  position: relative;
  display: inline-block;
  color: #555555;
}

/* Tooltip text */
.tooltipT .tooltiptext {
  visibility: hidden;
  width: 500px;
  background-color: #D0EAFF;
  color: #555555;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
 
  /* Position the tooltip text - see examples below! */
  position: absolute;
  z-index: 1;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltipT:hover .tooltiptext {
  visibility: visible;
}

I've tried changing the z-index of both the textbox and hover css. I've also tried assigning it the same container class as the built-in tooltip ("cf-tooltip").

Any help would be appreciated!

Thank you!

0 0

Replies

replied on April 3

Is there a reason you're not wanting to use the built in styling tools under the Themes tab?

In Modern Designer: Themes > Styles > Fields > Tooltip

In Classic Designer: Themes > Customize > Tooltip

0 0
replied on April 3

I want the text within the tooltip to have line breaks in between each line which can't be accomplished through the styling tools from what I understand.

0 0
replied on April 3 Show version history

You can create line breaks using <br>, at least in Cloud.

 

Editing to add: If this feature isn't available for your version, I just glanced at your tooltip text, and personally I would assign each row to it's corresponding field, rather than list all of them at once.

0 0
replied on April 3 Show version history

We have Forms on-prem, which doesn't seem to allow adding line breaks (<br>) in the tooltip text. 

And a tooltip for each field, that's how I originally had it. The user wanted to be able to 'tab' through each field without clicking, when doing this it opens/shows each tooltip as you are tabbing through. The solution we came up with was to have one tooltip above all the fields, which includes all the text.

 

0 0
replied on April 3

Darn! It looks like they should be added soon, as per a reply on this post.

That's a lot of text for one tooltip, they're usually just quick references, but if that's what they're wanting hopefully you can find a solution. Sorry I wasn't able to be more help!

1 0
replied on April 3

I appreciate your help!

0 0
replied on April 7

Hi Rex, which version of Forms do you use?

I tested on latest Forms 12 with the style you provided, and the tooltip could show above all other fields:

Also can you check your other custom css codes and see if some of them breaks the function?

0 0
replied on April 8

We're on Form version 11.0.2311.50564. I will try updating our version.

0 0
replied on April 11

You can also put an HTML field above or below that area with the desired information.  The only downside to this is, the field will be displayed all the time, unlike the tooltip where they user has to hover over or click on the question mark.  If you want to get creative add a single checkbox field titled something like "Requisition Date Information" and then have a field rule that shows the HTML field when checked.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.