Adaptive forms: Inline long description help text | Community
Skip to main content
Level 3
February 6, 2018
Solved

Adaptive forms: Inline long description help text

  • February 6, 2018
  • 6 replies
  • 3242 views

We have a requirement to implement the inline tool tip. Is these any OOTB to implement this in adaptive forms. Below is the screen shot for the reference, how it should look like. Thanks in advance.

Regards,

Chandra

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 James_R_Green

Hi chandran85965395

You can use the long description with inline styles or the theme editor to set the css of the message to your requirements:

Inline CSS properties for adaptive form components

Adobe Experience Manager Help | Themes in AEM Forms

They are pretty intuitive - go to the edit dropdown in the top right and change to style, then click on the textbox or other widget, then long description. Change something obvious like the text colour to get a feel for it.

Use the theme editor if you want to apply the same look and feel across more than one form and then override it on a form by form basis with inline styles if you need to.

6 replies

James_R_Green
James_R_GreenAccepted solution
Level 6
February 6, 2018

Hi chandran85965395

You can use the long description with inline styles or the theme editor to set the css of the message to your requirements:

Inline CSS properties for adaptive form components

Adobe Experience Manager Help | Themes in AEM Forms

They are pretty intuitive - go to the edit dropdown in the top right and change to style, then click on the textbox or other widget, then long description. Change something obvious like the text colour to get a feel for it.

Use the theme editor if you want to apply the same look and feel across more than one form and then override it on a form by form basis with inline styles if you need to.

smacdonald2008
Level 10
February 6, 2018

Great suggestion James!

Level 3
February 6, 2018

Thanks James and smacdonald2008​.

I added the Long description and help icon, but our issue is help text is coming after the field. We are looking as a popup as I shown in my previous screen shot. Just looking if there is any easy way to implement that solution.

Thanks,

Chandra

James_R_Green
Level 6
February 6, 2018

Hi chandran85965395

That's where the CSS comes in to play, look at the help icon in inspector it sets:

  1.    position: absolute;
  2.    top: 8px;
  3.    right: 8px;

to position the help (?) icon above the field, if you try styling with the theme editor, or inline styles as described in the links in my previous comment you can get a similar effect.

I tried:

  1.    position: absolute;
  2.    top: -30px;
  3.    right: 50px;

And got the following.

Of course you will need to tweak to make sure it plays well with other items on the page, but should be enough to get you started. Screenshots of my setup below:

Level 3
February 9, 2018

Thank you very much James, It helped me a lot.  Am able to it now .  But still have one more problem, If I click in 'x' it close the popup. Can you help me here.

Thanks in advance.

jagjeetthukral
Level 3
February 12, 2018

chandran85965395​  you need to add display:none to the selector ".guideFieldDescription.long" which is the parent to the cross button.

You can do this by creating a client lib, creating a js file this code and add it as a dependency in your Adaptive form.

Hope this helps !!!

Cheers,

Jagjeet Singh

AEM Forms Blog