Interface combination problems

a!localVariables(
  local!chooseValue:1,
  local!buttonChoice,
  local!backupuserauditcasttype:rule!KONE_Development_BACKUP_USER_AUDIT_castType(),
  local!userrolecasttype:rule!KONE_Development_USER_ROLE_castType(),
  a!formLayout(
    label:choose(local!chooseValue,"KONE Maintenanence System","Registration System","Update System","Delete System"),
    contents:{
      a!radioButtonField(
        label: "Please Choose",
        labelPosition: "COLLAPSED",
        choiceLabels: {"Registration", "Update","Delete"},
        choiceValues: {"Registration", "Update","Delete"},
        value:local!buttonChoice,
        saveInto: {a!save(target:local!buttonChoice,value:save!value),
        if(local!buttonChoice="Registration",
        a!save(target:local!chooseValue,value:2),
        if(local!buttonChoice="Update",
        a!save(target:local!chooseValue,value:3),
        if(local!buttonChoice="Delete",
        a!save(target:local!chooseValue,value:4),
        {}
        )
        )
        ) 
        },
        choiceLayout: "STACKED",
        validations: {}
      ),
      a!imageField(
        label: "Image",
        labelPosition: "COLLAPSED",
        images: {
          a!documentImage(
            document: cons!KONE_IMAGE01
          )
        },
        showWhen:local!chooseValue=1,
        size: "LARGE",
        isThumbnail: false,
        style: "STANDARD"
      ),
      choose(local!chooseValue,{},
      a!sectionLayout(
       
        rule!KONE_Development_Insert_Interface(backupuseraudit:local!backupuserauditcasttype, userrole:local!userrolecasttype,
        submit:true()
        ),
      )
      ),
    }
  ),
)

I wish to combine all different interfaces into one interface, however I have two problems, one is the interface always being like picture if i put interface rule under a!sectionlayout which under a!formlayout.

Second is in the interface, I have a boolean rule input value need to be processed by click button then saved to be true under one of the interface, which mean the answer only can be conclude before the interface being processed, then how should i fill into parameter of the interface rule of boolean value?

  Discussion posts and replies are publicly visible