有选择地禁用“下一步按钮"在 Qualtrics 中针对特定问题 [英] Selectively disabling "Next Button" in Qualtrics for specific questions

查看:64
本文介绍了有选择地禁用“下一步按钮"在 Qualtrics 中针对特定问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我多年来没有玩过任何编码,我正在努力理解 Qualtrics 提供的用于在调查中禁用下一步按钮"的模板.下一步按钮"不必完全禁用(可以是白色).由于调查是出于研究目的,我需要避免按钮在定时问题上分散参与者的注意力.

I haven't played with any coding in years and I am struggling with understanding the template that Qualtrics provided for disabling the "Next Button" in a survey. The "Next Button" doesn't have to be disabled entirely (could be colored white). Since the survey is for research purposes, I need to keep the button from distracting participants on timed questions.

这是我为了编码而查看的两个页面.

These are the two pages that I have looked at for coding.

https://s.qualtrics.com/WRAPI/QuestionAPI/classes/Qualtrics%20JavaScript%20Question%20API.html

https://www.qualtrics.com/wp-content/uploads/2011/07/Qualtrics-Question-API.pdf

如果您有更好的编码方式,或者可以更深入地为我解释编码大纲,我将非常感谢您的帮助.

If you have a better way to code this, or could explain the coding outline in greater depth for me, I'd appreciate the help.

推荐答案

一些事情:

  1. 由于最近 Qualtrics 的变化,Anthony 的解决方案在 JFE 中并不总是有效.有时 JS 会在按钮出现之前运行.解决方案是推迟隐藏按钮:

  1. Due to a recent change in Qualtrics, Anthony's solution doesn't always work in JFE. Sometimes the JS runs before the buttons are present. The solution is defer hiding the buttons:

Qualtrics.SurveyEngine.addOnload(function() {
    function hideEl(element) {
        if($(element)) $(element).hide();
    }   
    hideEl.defer('NextButton');
});

  • 为了消除等待 JS 执行其操作时的简短按钮闪烁,您可以在问题文本的末尾添加一个样式标记:

  • To eliminate the brief button flash while waiting for JS to do its thing, you can add a style tag at the end of the question text instead:

    <style>
         #NextButton {display:none;}
    </style>

  • 这篇关于有选择地禁用“下一步按钮"在 Qualtrics 中针对特定问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆