Skip to content Skip to sidebar Skip to footer

How To Validate Form Which Is Prepared Dynamically Using Dfom Plugin?

can you please tell me how to validate form which is prepared dynamically using dfom plugin? I used jquery validation but it don't work on chrome. can you please tell me why dform

Solution 1:

It is working but you are missing the Submit button.

This is the correct version: http://jsfiddle.net/8bweG/22/

$("#sform").dform({
    "action" : "http://dgg.gg",
    "method" : "get",
  "elements": [
    {
      "html": [
        {
          "html": [
            {
              "type": "number",
              "id": "totalRetryCount",
              "name": "totalRetryCount",
              "required": false,
              "value": 0,
              "tabindex": 1,
              "validate": {
                  "messages": {
                    "number": "Naveen Kanjush hain"
                  }
              }
            }
          ],
          "type": "fieldset",
          "caption": "Total Retry Count"
        },
        {
          "html": [
            {
              "type": "number",
              "id": "totalRepeatCount",
              "name": "totalRepeatCount",
              "required": false,
              "value": 0,
              "tabindex": 2,
              "validate": {
                  "messages": {
                    "number": "Naveen Kanjush hain"
                  }
              }
            }
          ],
          "type": "fieldset",
          "caption": "Total Repeat Count"
        },
        {
          "html": [
            {
              "type": "select",
              "options": {
                "true": "true",
                "false": "false"
              },
              "id": "summaryReportRequired",
              "name": "summaryReportRequired",
              "required": false,
              "value": "true",
              "tabindex": 3,

            }
          ],
          "type": "fieldset",
          "caption": "Summary Report Required"
        },
        {
          "html": [
            {
              "type": "select",
              "options": {
                "ALWAYS": "ALWAYS",
                "ON_SUCCESS": "ON_SUCCESS"
              },
              "id": "postConditionExecution",
              "name": "postConditionExecution",
              "required": false,
              "value": "ON_SUCCESS",
              "tabindex": 4,

            }
          ],
          "type": "fieldset",
          "caption": "Post Condition Execution"
        },
        {
            "html": [
                {
                    "type" : "submit",
                    "value" : "Login"
                }
            ],
            "type": "fieldset",
            "caption": "Go away"
        }
      ],
      "type": "div",
      "class": "inputDiv",
      "caption": "<h3>Configuration Parameters</h3>"
    }
  ],
  "id": "testSuiteConfigurationform",
  "name": "testSuiteConfigurationform",
  "method": "post"
}
);

Post a Comment for "How To Validate Form Which Is Prepared Dynamically Using Dfom Plugin?"