Hello,
I'm looking for some advice on how best to set up coupon functionality in Portals. I have a Dataverse table for coupon codes, and basically when a user is goes to complete their registration, they have the opportunity to apply coupons to that registration to reduce the cost (they are allowed to enter more than one coupon)
I thought I could set up a text input, with a custom button beside it to 'verify coupon', which could then use fetch xml, but I'm not sure that will work because A) I don't know if I can add a button right below a field in an entity form, and B) if it is a valid coupon it needs to then add a relationship to that coupon and display it in a subgrid, I'm just not sure it's possible to refresh the session to display the applied coupons.
If you're a pro out there and you have any suggestions for how to go about adding this functionality please comment. I would really appreciate some help on this.