I’m trying to build a coupon submission field.
I have a data type called “Coupon” with a data field called “coupon code” and another data field called “discount value” which contains the actual amount of the discount. I have an input field where the coupon code is entered. I want the input fields custom state to change to the coupons discount value when the input field’s value matches that coupons “coupon code”.
Here is what I have set up so far: Workflow where “When Input Field’s Value contains Search for Coupon’s Code:first item.”. When that condition is met, its custom state is changed to “Search for Coupon Discount:first item” and the condition is “Code = Input Field’s Value”.
It works for the first coupon I’ve created, but when I try the second coupon it doesn’t work. I suspect I’m messing something up wth the “First Item” calls. Any suggestions?