Skip to main content
March 21, 2024
Solved

Form not getting validated on "Record Type" but working fine when testing the interface.

  • March 21, 2024
  • 2 replies
  • 0 views

Hi, I have a form which has an edit button on it which is on the summary page and not added as a related action as per client's requirement. The form is working just fine will all the validations upon clicking on "Submit" button. But when opened a record from the record type and trying to click on "Submit", the form just goes forward without validating anything. Any suggestions would be helpful.

 a!buttonLayout(
                  primaryButtons: {
                    a!buttonWidget(
                      label: "Submit",
                      submit: true,
                      value: "submit",
                      validate:  true,
                      style: "PRIMARY",
                      saveInto: {
                        local!submit,
                        a!save({ local!edit, local!cancel }, null),
                      },
                    )
                  }
                )

    Best answer by stefanhelzle0001

    But that interface will not do anything!?!? And validation will only trigger on submit, which never happens because you did not make it part of a process.

    2 replies

    stefanhelzle0001
    Brainy
    March 21, 2024

    But that interface will not do anything!?!? And validation will only trigger on submit, which never happens because you did not make it part of a process.

    santhoshr9843
    March 22, 2024

    Assuming this is not a user input task, try making submit as false but validate as true. This might solve the problem.