added
Feature: multiple Variables per Input Request
11 months ago by Mark Healey
Happy Halloween 🎃 We are excited to share the newest feature available in our API: multiple Variables per Input Request!
This is an all-new feature and a breaking change
Before today's release of version 1.1.0
, our API associated a single Variable with a single Input Request. That is, each question had a corresponding value. Consider this example:
{
...,
question: "Is your income above $138,000?"
backlink: {
variable: "Income_Above_Limit?",
value: true
}
form: {
name: "Income_Above_Limit?",
value: true,
answer: "Yes"
...,
}
}
With this latest update, the Input Request property has exploded to include much more data than before, supporting multiple Variables. Here is an example:
{
...,
question: "What is the first tier of your company match?",
forms: [
{
backlink: {
variable: "401K_Tier1_Match_Pct",
value: 1
},
name: "401K_Tier1_Match_Pct",
},
{
text: "up to"
},
{
backlink: {
variable: "401K_Tier1_Up_To_Pct",
value: 1
},
name: "401K_Tier1_Up_To_Pct",
},
],
}
This new format enables interfaces like the one shown below with two input fields for a single question.