Welcome to the LimeSurvey Community Forum

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

Regarding the "Question validation equation," is it possible to hide the TIP whe

  • yuto0419
  • yuto0419's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 months 1 week ago #264977 by yuto0419
Please help us help you and fill where relevant:
Your LimeSurvey version: 5.6.9+230306
Own server or LimeSurvey hosting:Own server(Azure)
Survey theme/template:fruity
==================

Regarding the "Question validation equation," is it possible to hide the TIP when a valid value is entered?

Currently,
 When a correct value is entered: the TIP displays a green message
 When an abnormal value is entered: the TIP displays a red message

However, I would like to change it so that
 When a correct value is entered: the TIP is hidden
 When an abnormal value is entered: the TIP displays a red message


Thanks!
 

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
6 months 1 week ago #264978 by DenisChenu
Hi,

{if(MyValidation,"","You have an error")}

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.

Please Log in to join the conversation.

  • yuto0419
  • yuto0419's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 months 1 week ago #265003 by yuto0419

Hi,

{if(MyValidation,"","You have an error")}
Where do I write {if(MyValidation,"","You have an error")}?

Also, should I assign a validation formula like "!is_empty(G17Q12)" to "MyValidation"?

Please Log in to join the conversation.

  • yuto0419
  • yuto0419's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 months 1 week ago #265004 by yuto0419

Hi,

{if(MyValidation,"","You have an error")}
Where do I write {if(MyValidation,"","You have an error")}?

Also, should I assign a validation formula like "!is_empty(G17Q12)" to "MyValidation"?
I added {if(MyValidation,"","You have an error")} to the TIP and the problem was solved.
However, the "!" icon remains. Is it possible to hide the "!" icon?
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
6 months 1 week ago #265011 by DenisChenu

However, the "!" icon remains. Is it possible to hide the "!" icon?
 
Sorry, i'm unclear about where to put it :). You get it it was in tip.

Else :

1. Report the issue
2. Maybe you can such solution in custom.js

gitlab.com/SondagesPro/SurveyThemes/skel...?ref_type=heads#L103
Code:
        $(document).on("html:updated", ".em_sq_fn_validation, .em_q_fn_validation", function () {
            if ($.trim($(this).text())) {
                $(this).removeClass("hidden");
            } else {
                $(this).addClass("hidden");
            }
        });
Not tested in last version
 

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.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose