new save button on user input form

Hi, any one can help me on i want to add new save button apart from save draft option, disabling this auto save draft function keep a new save button until i submit form that user input form data must be draft into the form

  Discussion posts and replies are publicly visible

Parents
  • Hi

    You can have a a!buttonWidget() . If you don't wanna submit the form, configure the parameter "submit" as false. Make sure you are saving all the cdt values in their respective fields

    {
      a!sectionLayout(
        label:"Form",
        contents: {
          a!textField(
            label:"Name",
            value:ri!name,
            saveInto: ri!name
          ),
          a!integerField(
            label:"Employee Number",
            value: ri!empNo,
            saveInto: ri!empNo
          )
        }
      ),
      a!buttonLayout(
        secondaryButtons:  a!buttonWidget(
          label:"Save",
          style:"SECONDARY",
          submit:false(),
          value:"save",
          saveInto: {
            ri!buttonAction
          }
        )
      )
    }
    
    
    .

Reply
  • Hi

    You can have a a!buttonWidget() . If you don't wanna submit the form, configure the parameter "submit" as false. Make sure you are saving all the cdt values in their respective fields

    {
      a!sectionLayout(
        label:"Form",
        contents: {
          a!textField(
            label:"Name",
            value:ri!name,
            saveInto: ri!name
          ),
          a!integerField(
            label:"Employee Number",
            value: ri!empNo,
            saveInto: ri!empNo
          )
        }
      ),
      a!buttonLayout(
        secondaryButtons:  a!buttonWidget(
          label:"Save",
          style:"SECONDARY",
          submit:false(),
          value:"save",
          saveInto: {
            ri!buttonAction
          }
        )
      )
    }
    
    
    .

Children