Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions concord.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
configuration:
arguments:
myForm:
lastName: Smith

flows:
default:
- form: myForm
# form calls can override form values or provide additional data
values:
lastName: "Appleseed"
sum: "${1 + 2}"
address:
city: Toronto
province: Ontario
country: Canada

- log: "Hello, ${myForm.firstName} ${myForm.lastName}"
- log: "We got your file and stored it as ${myForm.aFile}"
- log: "You have following skills"
- task: log
in:
msg: "Skill -> ${item}"
withItems: ${myForm.skills}
- if: ${myForm.tosAgree}
then:
- log: "${myForm.firstName} says: I have agreed to the Terms and Conditions"

forms:
myForm:
- firstName: { label: "First name", type: "string", value: "John" }
- lastName: { label: "Last name", type: "string" }
- age: { label: "Age", type: "int", min: 21, max: 999 }
- color: { label: "Favorite color", type: "string", allow: ["red", "green", "blue"] }
- aFile: { label: "A file", type: "file?" }
- tosAgree: { label: "Terms and conditions read", type: "boolean", value: true }
- skills: { label: "Skills", type: "string*", allow: ["css", "design", "angular"]}