Jump to content

Show / Hide HTML Blocks based on Field Value


Recommended Posts

Hello! Looking for help with the following functionality with a tabular report.  I have a tabular report with the field name of SHIP_NAME and two different HTML Blocks with hyperlinks to direct the user to different URLs/reports.  What I'm trying to accomplish is to have only one HTML Block / Link visible based on the value of the SHIP_NAME field. 

If [SHIP_NAME] includes 'OTC', Hide HTML Block 1

If [SHIP_NAME] does not include 'OTC', Hide HTML Block 2

Caspio Support has directed me to the Forums for a script. 

Link to comment
Share on other sites

Thanks MayMusic. I'm not sure if that solution will work for my report.  Kindly see the attached screenshot. HTMLblocks.thumb.JPG.2fb92ee3b03e3b86aab4bd07393f7c5a.JPG

If possible, I would like....

The hyperlink in the first column of HTML blocks, i.e. "Settle Solstice" should only visible when the SHIP NAME value is not OTC.  

The hyperlink in the second column of HTML Blocks i.e. "Settle OTC's" should only be visible when the SHIP NAME is OTC. 

The links lead to different URLs as the reports for Settling OTC's vs other SHIPs is quite different. 

 

Best, Ryan 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...