Need to make a field is required for a button which has skipped all the validation including this field.

I have a button which has skipped all rule input field validation on one interface. Right now, I want to get a warning when I click the button without a specific rule input field value. 

I couldn't use validationGroup directly because I have made this specific rule input field is mandatory for one more button on the same interface.

Like the example code below, I want to get a warning "text1 is mandatory" when I click the button1. And text1 and text2 are still mandatory field for button2.

load(
  local!button1,
  local!button2,
  local!text1,
  local!text2,
  a!formLayout(
    firstcolumnContents:{
      a!textfield(
        lable: "text1",
        required: true,
        value: local!text1,
        ssaveInto: local!text1
      )
    },
    secondcolunmContents:{
      a!textfield(
        label: "texx2",
        require: true,
        value: local!text2,
        saveInto: local!text2
      )
    },
    buttons: a!buttonlayout:{
    primaryButton:{
 a!buttonWidegetSubmit(
          label: "button1",
          value: true,
          saveInto: local!button1,
          skipvalidation: true
        ),
        a!buttonWidgetSubmit(
          lable: "button2",
          value: false,
          saveInto: local!button2
        )
      }
    }
  )
)

  Discussion posts and replies are publicly visible