Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Tooltip - Automatic?

  • boshra.m
  • boshra.m's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
1 year 3 months ago #239319 by boshra.m
Tooltip - Automatic? was created by boshra.m
Please help us help you and fill where relevant:
Your LimeSurvey version: LimeSurvey Cloud Version 5.4.12
Own server or LimeSurvey hosting: LimeSurvey hosting
Survey theme/template: Fruity
==================
Hello,

I was just wondering if it's possible to make the tooltip function automatic? Specifically, is it possible to have limesurey recognize a word and automatically put a tooltip on it without having to go into every word and add the tooltip code myself? For example, I need to add a tooltip to every word "apple". Normally I would just go into wherever it's mentioned and add the code. However, the survey I'm making is pretty big and will mention the word a lot of times which is why I am wondering if it's possible that every time I write the word "apple" in a question, limesurvey can automatically make it a tooltip without me having to go in and add/copy it every time? Not sure if there is something I can add in my custom css?

Anyways, just thought to ask just in case.

Thanks :)

 

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 3 months ago #239328 by Joffm
Replied by Joffm on topic Tooltip - Automatic?
I should say, an easy solution is to do a "Search/Replace" in the lss-file.
Like this
I replaced all occurences of "apples" with the markup of the tooltip
<a href="#" data-bs-toggle="tooltip" title="Apple trees (Malus domestica) are cultivated worldwide and are the most widely grown species in the genus Malus. The tree originated in Central Asia, where its wild ancestor, Malus sieversii, is still found today. ">apples</a>

and got



Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose