Hi, I am trying to have a list of buttons in my Tempo form (I am running 7.4). I

Hi, I am trying to have a list of buttons in my Tempo form (I am running 7.4). In my a!formLayout, I wrote:
a!buttonLayout(
primaryButtons: {
a!buttonWidget(
label: "Save and Close",
style: "PRIMARY",
confirmMessage: "Are you sure you want to send to approvers?",
value: "Submit",
saveInto:ri!button
),
a!buttonWidget(
label: "Exit",
style: "DESTRUCTIVE",
confirmMessage: "Are you sure you want to exit?",
value: "Exit",
saveInto:ri!button
)
}
)

but it doesn't work. Could you help me?
Thanks...

OriginalPostID-96333

OriginalPostID-96333

  Discussion posts and replies are publicly visible

Parents
  • = a!formLayout(
    label: "Investment Form",
    firstColumnContents: {
    a!milestoneField(
    label: "Process Flow Chart",
    instructions: "Get the step where you are!",
    steps: {
    cons!processSteps
    },
    active: ri!step
    ),
    a!sectionLayout(
    label: "Investment General Data",
    firstColumnContents: {
    a!textField(
    label: "Project Name",
    required: true,
    value: ri!projectName,
    saveInto: ri!projectName
    ),
    a!floatingPointField(
    label: "Amount",
    required: true,
    value: ri!amountInv,
    saveInto: ri!amountInv
    ),
    a!radioButtonField(
    label: "To be presented in Committee",
    required: true,
    choiceLabels: {
    "Yes",
    "No"
    },
    choiceValues: {
    "Yes",
    "No"
    },
    value: ri!commiteePresented,
    saveInto: ri!commiteePresented
    ),
    a!dateField(
    label: "Investment Starting Date",
    value: today(),
    saveInto: ri!date
    ),
    a!fileUploadField(
    label: "Attachment",
    instructions: "Any format is acceptable.",
    required: false,
    target: ri!folderDest,
    value: ri!file,
    saveInto: ri!file
    )
    },
    secondColumnContents: {
    a!dropdownField(
    label: "Project Type",
    labelPosition: "ADJACENT",
    required: true,
    placeholderLabel: "Select a project type...",
    choiceLabels: {
    cons!projectType
    },
    choiceValues: {
    cons!projectType
    },
    value: ri!projectType,
    saveInto: ri!projectType
    ),
    a!dateField(
    label: "Date Submitted",
    readOnly: true,
    value: date(
    2013,
    1,
    20
    )
    )
    }
    )
    },
    a!buttonLayout(
    primaryButtons: {
    a!buttonWidget(
    label: "Save and Close",
    style: "PRIMARY",
    confirmMessage: "Are you sure you want to send to approvers?",
    value: "Submit",
    saveInto: ri!button
    ),
    a!buttonWidget(
    label: "Exit",
    style: "DESTRUCTIVE",
    confirmMessage: "Are you sure you want to exit?",
    value: "Exit",
    saveInto: ri!button
    )
    }
    )
    )
    this is all my code but it says "Expression evaluation error in rule 'formsailrecipe'".
    My input rule includes button.
    Thanks
Reply
  • = a!formLayout(
    label: "Investment Form",
    firstColumnContents: {
    a!milestoneField(
    label: "Process Flow Chart",
    instructions: "Get the step where you are!",
    steps: {
    cons!processSteps
    },
    active: ri!step
    ),
    a!sectionLayout(
    label: "Investment General Data",
    firstColumnContents: {
    a!textField(
    label: "Project Name",
    required: true,
    value: ri!projectName,
    saveInto: ri!projectName
    ),
    a!floatingPointField(
    label: "Amount",
    required: true,
    value: ri!amountInv,
    saveInto: ri!amountInv
    ),
    a!radioButtonField(
    label: "To be presented in Committee",
    required: true,
    choiceLabels: {
    "Yes",
    "No"
    },
    choiceValues: {
    "Yes",
    "No"
    },
    value: ri!commiteePresented,
    saveInto: ri!commiteePresented
    ),
    a!dateField(
    label: "Investment Starting Date",
    value: today(),
    saveInto: ri!date
    ),
    a!fileUploadField(
    label: "Attachment",
    instructions: "Any format is acceptable.",
    required: false,
    target: ri!folderDest,
    value: ri!file,
    saveInto: ri!file
    )
    },
    secondColumnContents: {
    a!dropdownField(
    label: "Project Type",
    labelPosition: "ADJACENT",
    required: true,
    placeholderLabel: "Select a project type...",
    choiceLabels: {
    cons!projectType
    },
    choiceValues: {
    cons!projectType
    },
    value: ri!projectType,
    saveInto: ri!projectType
    ),
    a!dateField(
    label: "Date Submitted",
    readOnly: true,
    value: date(
    2013,
    1,
    20
    )
    )
    }
    )
    },
    a!buttonLayout(
    primaryButtons: {
    a!buttonWidget(
    label: "Save and Close",
    style: "PRIMARY",
    confirmMessage: "Are you sure you want to send to approvers?",
    value: "Submit",
    saveInto: ri!button
    ),
    a!buttonWidget(
    label: "Exit",
    style: "DESTRUCTIVE",
    confirmMessage: "Are you sure you want to exit?",
    value: "Exit",
    saveInto: ri!button
    )
    }
    )
    )
    this is all my code but it says "Expression evaluation error in rule 'formsailrecipe'".
    My input rule includes button.
    Thanks
Children
No Data