empty the form

Hello all,

I am trying to empty the form whenever I press add button it empty the form and take the data to an editable grid like this.

  Discussion posts and replies are publicly visible

Parents Reply
  • a!columnLayout(
    contents: {
    a!radioButtonField(
    label: "Document Form",
    labelPosition: "ABOVE",
    choiceLabels: index(rule!ONH_fetch_lookUp(lookUp: "Document Form"),"itemEn",{}),
    choiceValues: index(rule!ONH_fetch_lookUp(lookUp: "Document Form"),"itemId",{}),
    value: if(a!isNullOrEmpty(local!requestDocument.documentForm),null(),local!requestDocument.documentForm),
    saveInto: local!requestDocument.documentForm,
    required: true,
    choiceLayout: "COMPACT",
    validations: {}
    )
    }
    ),

    a!buttonArrayLayout(
    buttons: {
    a!buttonWidget(
    label: "Add",
    iconPosition: "END",
    value: append(ri!requestDocument,local!requestDocument),
    saveInto: {
    ri!requestDocument,
    a!save(local!addNewDocument,null()),
    a!save(local!requestDocument,null())
    },
    style: "NORMAL",
    validate: if(a!isNullOrEmpty(local!requestDocument),"it is not validate",{})




    )
    },
    align: "START"
    )

    This is an example whenever I try to null the date or the dropdown does not work.

Children