IF Function to Return HTML
I am trying to create a simple IF function to return a specific link based on the value of a column. This is in an Update Item action. However, I keep getting the error "Error occurred on evaluating expression. Unexpected identifier" What am I doing wrong here?
-
HI Dan Thale,
take care using quotes. In your return statement you're ending the string with the 2nd dbl-quote after href=
If you have to use quotes inside a string, make sure to use single quotes:
return "<a href='https:/iwr.sdttc.com/paymentapplication/Search.aspx' target='_blank'>San Diego County Property Tax Search</a>";
0 -
Matthias,
Thank you for the help. With that change I am able to successfully run the function and the field populates, however the link is not active. The field is a Multi Line field set to "Enhanced Rich Text". In the screenshot below you can see the link above which was manually entered is active, whereas the link below if via the action. Any thoughts as to why this would be?
0 -
Never mind I figured it out. Thanks Matthias!
0
Please sign in to leave a comment.
Comments
3 comments