I am trying to introduce a link into a table column based on the presence or absence of a value in a field. Ideally if the field is null the link (SMQ) in the pic is not displayed (or a message is displayed as in the code below).
I am not sure if the best solution is a case-when-then or a javascript.
Here's the statement in code format (it doesn't work - just displays the <a href... in the table!):
CASE
WHEN [@field:SMQcode] <> ''
THEN '<a href = "https://website.html?
SMQcode=[@field:SMQcode]&ATClevel2ID=[@field:primaryATClevel2ID]&Level2=Yes">SMQ</a>'
ELSE 'No SMQ available'
END
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
SteveMott
Hi
I am trying to introduce a link into a table column based on the presence or absence of a value in a field. Ideally if the field is null the link (SMQ) in the pic is not displayed (or a message is displayed as in the code below).
I am not sure if the best solution is a case-when-then or a javascript.
Here's the statement in code format (it doesn't work - just displays the <a href... in the table!):
CASE
WHEN [@field:SMQcode] <> ''
THEN '<a href = "https://website.html?
SMQcode=[@field:SMQcode]&ATClevel2ID=[@field:primaryATClevel2ID]&Level2=Yes">SMQ</a>'
ELSE 'No SMQ available'
END
Any advice would be greatly appreciated.
Thanks
Steve
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.