, возможно, с использованием JavaScript или чего -либо еще, значительно подтвердит любую помощь. Я не очень хорош в JavaScript, и попытался использовать GPT, который придумал этот код < /p>
Код: Выделить всё
Qualtrics.SurveyEngine.addOnReady(function() {
// Select all group headers (Qualtrics usually uses these classes)
let groupHeaders = document.querySelectorAll(".ChoiceGroupHeader, .RankGroupHeader, .Editable.Answer");
groupHeaders.forEach(header => {
// Create an input field to replace the header text
let input = document.createElement("input");
input.type = "text";
input.value = header.innerText.trim();
input.style.border = "1px solid #ccc";
input.style.borderRadius = "6px";
input.style.padding = "2px 6px";
input.style.fontSize = "14px";
input.style.width = (header.offsetWidth || 120) + "px";
// Replace the header content with the input
header.innerHTML = "";
header.appendChild(input);
// Update the header text dynamically as the user edits
input.addEventListener("input", function() {
header.setAttribute("data-renamed", this.value);
});
});
});
Спасибо всем
Подробнее здесь: https://stackoverflow.com/questions/797 ... ng-preview
Мобильная версия