Jump to content

Use Java to Show Display Value


Recommended Posts

Hello Caspio Friends,

Im wondering if this is possible.  I have a submission page that uses a dropdown.  The dropdown is set to have a value for Display, and and Actual Value.  I now would like on a reports page to place code inside an html block to display the value in that field.  The rub is I want to to show the Display Value, not the Actual Value.   Is there a way I can do this?

Thanks in advance.

 

Link to comment
Share on other sites

Hello @braxwell, what I suggest is to use a "Calculated Field" instead and add a condition for the result.

For example:
 

CASE

WHEN ( [@field:Fieldname] = "one")
THEN 1
WHEN ( [@field:Fieldname] = "two")
THEN 2
WHEN ( [@field:Fieldname] = "three")
THEN 3

END

For more information, check this documentation: 
https://howto.caspio.com/datapages/reports/advanced-reporting/calculations-in-forms-and-reports/

I hope this helps :)

~WatashiwaJin~

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...