I'm having some issues with making the disclaimer (or message!) on the transaction forms dynamic. I basically need it to show a different message based on the state of the shipping address (which is an issue in itself).
I'm having a tough time with any examples or docs. I'm either looking in the wrong place, or just not understanding it. They are currently using the legacy basic forms, which probably doesn't help.
These are the options.. I think:
1) I need to write a script to parse the shipping address as retrieved by an API call, then I figure I could use the setFieldValue to set the value of the disclaimer? Or set it to a custom field and display that?
2) Use an Advanced HTML/PDF form and do a hardcoded if statement.. maybe? tbh I'm not even sure how I can get the state, as all the address fields I have seem to be just 'Address'.
Unless I'm barking up the wrong tree and it's much simpler than that altogether. I've kinda been chucked in the deep end, having had no NS experience before!
If anyone has an examples, that'd be swell.
Thanks in advance!