How to display check box

Hi,

How to show a checkbox like below

Thanks a lots

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Senior Developer
    in reply to ojask2243

    Something like the below:

    a!localVariables(
      local!value1,
      local!value2,
      {
        a!columnsLayout(
          columns: {
            a!columnLayout(
              contents: {
                a!checkboxField(
                  label: "Checkboxes",
                  labelPosition: "COLLAPSED",
                  choiceLabels: {"Option 1", "Option 2"},
                  choiceValues: {1, 2},
                  value: local!value1,
                  saveInto: local!value1,
                  validations: {}
                )
              }
            ),
            a!columnLayout(
              contents: {
                a!checkboxField(
                  label: "",
                  labelPosition: "COLLAPSED",
                  choiceLabels: {"Option 3", "Option 4"},
                  choiceValues: {3, 4},
                  value: local!value2,
                  saveInto:local!value2,
                  validations: {}
                )
              }
            ),
            a!columnLayout(
              contents: {
                a!buttonLayout(
                  a!buttonWidget(
                    label:"Submit",
                    saveInto: {
                      a!writeToDataStoreEntity(
                        dataStoreEntity: {your_entity_constant},
                        valueToStore: updatedictionary(
                          your_local_varible_which_you_have_to_Insert,
                          {
                            fieldName_in_Which_you_want_to_store:joinarray({local!value1,local!value2},";") 
                          }
                        )
                      )
                    }
                  )
                )
              }
            )
          }
        )
      }
    )

Children