I was asked to help in a situation where words in some subquestions might be unfamiliar to someone taking the survey. It is possible to have something like
Want to go to <a onclick="alert('Very relaxing hot and humid room.'); return false;">sauna</a>?
in a subquestion text. Do others have better idea? Maybe something like Show policy -link in the survey data policy.
sauna <a class="fa fa-question-circle text-info" data-content="Very relaxing hot and humid room" data-placement="top" data-bs-toggle="popover" data-bs-trigger="focus" role="button" tabindex="0" title=" "> </a>
OR
Code:
<a data-content="Very relaxing hot and humid room" data-placement="top" data-bs-toggle="popover" data-bs-trigger="focus" role="button" tabindex="0" title=" ">sauna</a>
And in custom.js
Code:
$('[data-bs-toggle="popover"]').popover();
I must create a a11y cleaner solution before implement in skelvanilla
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.
Last edit: 5 years 7 months ago by DenisChenu. Reason: PS
Thanks! Both of them seems good, I'll let the user to choise. And it also works if I just put the js-code to the question, so no need to modify the theme.
And using focus triggered : allow open and don't close (keyboard compatible)
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.