• Resolved rastarime

    (@rastarime)


    Good morning,

    I have implemented a simple form with First Name, Last Name, Phone, Mail, 2 acceptance checkboxes and a field for uploading pdf files.

    The form behaves that as long as the first mandatory checkbox is not ticked, the button cannot be clicked and the check on the fields is not done.

    The problem is that a check is made on the Phone field (only accepting numbers), a check is made on the email but no check is made on the first and last name fields.

    Is it possible to run a check on the two fields, a simple true/false if it is filled in?

    I enclose the form code below:

    [text* Nome "Nome *"]
    [text* Cognome "Cognome *"]
    [tel* phone "Telefono *"]
    [email* mail "Email *"]
    <br>
    [acceptance Trattamentodati "Acconsento al trattamento dei miei dati personali ai sensi dell'articolo 13 del Regolamento (UE) 2016/679 *"]
    [acceptance Trattamentocommerciale optional "Acconsento al trattamento dei dati per comunicazioni commerciali e informative su Eventi, Prodotti e Servizi"]
    <br>
    <label> Carica il tuo CV (in formato PDF - max 1MB)
        [file* FileCV limit:1mb filetypes:pdf] </label>
    <br>
    [submit "Invia il Curriculum"]

    Cordially!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    I checked the form and confirmed that you get the “Compila questo campo.” message if you leave the Nome or Cognome field blank.

    Thread Starter rastarime

    (@rastarime)

    Hi Takayuki Miyoshi,

    is there any way to solve this problem?

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    What problems do you have?

    Thread Starter rastarime

    (@rastarime)

    the form posted above, although you have control over the text fields, when you click on the submit button the control is skipped and the data is sent.

    For example, if I leave the text fields empty but fill in everything else, the form submits the data skipping the check.

    Thread Starter rastarime

    (@rastarime)

    Hi,
    I solved the problem by rewriting the contact form code like this:

    [text* Nome placeholder "Nome *"] 
    [text* Cognome placeholder "Cognome *"]
    [tel* phone placeholder "Telefono *"] 
    [email* mail placeholder "Email *"]
    <br>
    [acceptance Trattamentodati] Acconsento al trattamento dei miei dati personali ai sensi dell'articolo 13 del Regolamento (UE) 2016/679 * [/acceptance]
    [acceptance Trattamentocommerciale optional] Acconsento al trattamento dei dati per comunicazioni commerciali e informative su Eventi, Prodotti e Servizi [/acceptance]
    <br>
    <label> Carica il tuo CV (in formato PDF - max 1MB)
        [file* FileCV limit:1mb filetypes:pdf] </label>
    <br>
    [submit "Invia il Curriculum"]
    • This reply was modified 8 months, 3 weeks ago by rastarime.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Text* Validation’ is closed to new replies.