Hi Shelby
Happy New Year!
I think you cannot use field names you already have, like Plant. For example, you can use something like IfPlant or FormPlant. Please note this field will become another field in the script if you are testing in Studio, so if Plant is 1000, set FormPlant/IfPlant to 1000.
When you import the script in an Evolve form, you can map the IF field to the original field on the form - aka Plant - so that you don't have to worry about rules or defaults to set your IF field.
Hope that helps!
Best Regards,
Sigrid
------------------------------
Sigrid Kok
Precisely Software Inc.
------------------------------
Original Message:
Sent: 12-30-2024 14:57
From: Shelby Murrell
Subject: Form field If conditions
Hi all,
I have a BAPI Studio script being used within a form. When I try to add an if condition around some of the fields and use Plant as the identifying form field I am getting the attached error "Error: form field values are invalid. Please correct the field name". Plant is a valid form field so I am confused why this is occurring. Does it need to be the name of the field under "Promote to Solution Field"?
The documentation is not helpful. Hoping someone from Precisely knows.
Thanks,
------------------------------
Shelby Murrell
SAP Functional Lead
MONSTER ENERGY
[USA]
------------------------------