Skip to content

Form validations settings missing after upgrade #536

Discussion options

You must be logged in to vote

Hi @wei2go,

We will investigate as to why this would have happened in your case, but meanwhile, the quickest fix without rolling anything back, would be to add default data to the validation entry in the layoutJson column in all the forms where it is missing.

{
  "composer": {
    "layout": [...],
    "properties": {
      "page0": {...},
      "form": {...},
      
      --->
      "validation": {
        "type": "validation",
        "validationType": "submit",
        "successMessage": "",
        "errorMessage": ""
      },
      --->
      ...
    }
  },
  ...
}

Here's a quick example of how the default values would look and where to put them.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kjmartens
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #528 on December 05, 2022 20:15.