We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40088
    • 708 Posts
    Revo 2.6.3

    I have a page that contains both the UpdateProfile and FormIt forms. The profile form is in a template and the FormIt form is called in a Chunk. They both work, essentially.

    Recently I noticed that when the FormIt form throws a validation error for an empty field it also throws the same error in the UpdateProfile form for all the required fields despite those fields being populated. When reversed, any errors in the UpdateProfile form does not throw errors in the FormIt form.

    UpdateProfile
    <form id="profile-message" class="editProfile" action="[[~[[*id]]]]#profile-message" method="post">
        [[+login.update_success:is=`1`:then=`[[%login.profile_updated? &namespace=`login` &topic=`updateprofile`]]`]]
        <input type="hidden" name="nospam:blank" value="">
        <input type="hidden" name="fullname" id="fullname" value="[[!+firstName]] [[!+lastName]]">
        <input type="hidden" name="mediaFolder" id="mediaFolder" value="[[!+mediaFolder]]">
        <fieldset>
            <legend>Edit Profile</legend>
            <label for="firstName">First Name [[!+error.firstName]]</label>
            <input type="text" name="firstName" id="firstName" value="[[+firstName]]">
    							
            <label for="lastName">Last Name [[!+error.lastName]]</label>
            <input type="text" name="lastName" id="lastName" value="[[+lastName]]">
    							
            <label for="email">Registration [[!%login.email]] [[!+error.email]]</label>
            <input type="text" name="email" id="email" value="[[+email]]">
    
            <label for="screenName">Screen Name [[!+error.screenName]]</label>
            <input type="text" name="screenName" id="screenName" value="[[+screenName]]">
    ...
        </fieldset>
        <input type="submit" name="login-updprof-btn" class="button" value="[[!%login.update_profile]]">
    </form>

    FormIt
    <span id="contact-message" class="message">[[+fi.successMessage]]</span>
    <form id="contactForm" class="contactForm" name="Contact" action="[[~[[*id]]]] method="post">
        <fieldset>
            <label for="name">Name [[!+fi.error.name]]</label>
            <input type="text" name="name" id="name" value="[[!+fi.name]]" tabindex="1">
    
            <label for="email">Email [[!+fi.error.email]]</label>
            <input type="email" name="email" id="email" value="[[!+fi.email]]" tabindex="2">
            <input type="email" name="confirmemail" value="[[+fi.confirmemail]]" class="confirmemail" autocomplete="off" placeholder="">
    
            <label for="message">Message [[!+fi.error.message]]</label>
            <textarea name="message" id="message" rows="5" value="[[!+fi.message]]" tabindex="3">[[!+fi.message]]</textarea>
            <input type="submit" name="contactSubmit" class="button" value="Go">
        </fieldset>
    </form>
      Todd