I have a multistage form on my website connected to a Dataset. Dataset Settings: Mode is Write only. The fields in the form (general settings) are NOT “read only”. The database permissions are set so that all members can submit.
I am encountering one weird problem. If I fill out the fields on the first slide, then click the button to continue to the second slide, the fields on the second slide are disabled. However, if you click to go back to the first slide, change the input of any field, then click on the second slide the fields are no longer disabled.
One other problem I am encountering is that when i access the page, the stages (at the top of the form) of the form are all underlined when the code in the Wix example shows that the first slide - stage- should only be underlined when accessing the page that has the form on it.
Thanks for the help!
This is the link to the form: https://www.le-galhp.com/intake and the code on the page:
function showContactInfo() {
$w(‘#slideshow1’).changeSlide(0);
$w(‘#ContactInfo’).disable();
$w(‘#Questionnaire’).enable();
$w(‘#Agreement’).enable();
$w(‘#Confirmation’).enable();
$w(‘#ContactInfoLine’).show();
$w(‘#QuestionnaireLine’).hide();
$w(‘#AgreementLine’).hide();
$w(‘#ConfirmationLine’).hide();
}
function showQuestionnaire() {
$w(‘#slideshow1’).changeSlide(1);
$w(‘#ContactInfo’).enable();
$w(‘#Questionnaire’).disable();
$w(‘#Agreement’).enable();
$w(‘#Confirmation’).enable();
$w(‘#ContactInfoLine’).hide();
$w(‘#QuestionnaireLine’).show();
$w(‘#AgreementLine’).hide();
$w(‘#ConfirmationLine’).hide();
}
function showAgreement() {
$w(‘#slideshow1’).changeSlide(2);
$w(‘#ContactInfo’).enable();
$w(‘#Questionnaire’).enable();
$w(‘#Agreement’).disable();
$w(‘#Confirmation’).enable();
$w(‘#ContactInfoLine’).hide();
$w(‘#QuestionnaireLine’).hide();
$w(‘#AgreementLine’).show();
$w(‘#ConfirmationLine’).hide();
}
function showConfirmation() {
$w(‘#slideshow1’).changeSlide(3);
$w(‘#ContactInfo’).enable();
$w(‘#Questionnaire’).enable();
$w(‘#Agreement’).enable();
$w(‘#Confirmation’).disable();
$w(‘#ContactInfoLine’).hide();
$w(‘#QuestionnaireLine’).hide();
$w(‘#AgreementLine’).hide();
$w(‘#ConfirmationLine’).show();
}
export function ContactInfo_onClick(event) {
showContactInfo();
}
export function Questionnaire_onClick(event) {
showQuestionnaire();
}
export function Agreement_onClick(event) {
showAgreement();
}
export function Confirmation_onClick(event) {
showConfirmation();
}
export function save1Button_onClick(event) {
showQuestionnaire();
}
export function questionnaireButton_click(event) {
showAgreement();
}
export function agreeButton_click(event) {
showConfirmation();
}