Ive got a custom action on my app that pulls info from a database and sends it to sengrid. Two of the data items are email addresses, one as a to: and one as CC:.
I require that if one of the fields is blank, it’ll go to the other, is this possible? They could both be TO: or CC:, it doesn’t matter to me, but currently I’m getting the error as per the below vid.
Also here is another vid showing my code:
Thanks for your help in advance, Ive only got this far with help from here and by logicing my way through it
You could have separate custom actions and separate buttons. Then have custom visiblity on buttons. So first button is only visible if to = empty, and the second button is if to = not empty. Then you send them to the correct custom action as a result of which button they pressed.
Thank you, that sounds like a reasonable workaround, however when I copy the button with the custom action on and change the code, it changes it for both the copied button and the original! This must be a bug??