Menu

Validate mandatory fields

2016-04-12
2025-07-14
  • Domen Dolar

    Domen Dolar - 2016-04-12

    You can check all mandatory fields before submitting the form. You check all fields that they have to be mandatory. You cna do thet in program "Fields on Block" and check "Mn.".

    1. All necesary fields are checked.
    2. Create field with type "Button SUBMIT" or use created one.
    3. Create link "Link to form(F)" and name it. In "Link location" writte !target program.webclient and in OUT block into "Description" writte code to call validation code:

    if (cMF()== false){return}

    cMF is javascript function. If you would like to chec specific block call function cMFblock name.
    5. Add created link to submit field
    6. "Compile" and "Preview"

     
  • Anonymous

    Anonymous - 2025-07-14

    For better understanding I would add a comment

    if (cMF()== false) { alert(''Field label is mandatory!"); }

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.