Oakley Posted July 8 Report Share Posted July 8 Have a field that will be a value of 1,2,3,or 4. based on what the user picks.. the value of the cost field should be 1 - $75 2 - $125 3- $175 4 - $225 i tried it but it needed a currency value. Any help you can give would be great. Thanksm! Quote Link to comment Share on other sites More sharing options...
0 Jodie Posted July 9 Report Share Posted July 9 Hi Oakley I'm guessing at the scenario and use case here so apologies if I'm way off. If you're trying to use this in a calculated field does this work? CASE WHEN [@cbParamVirtual1]=1 THEN 75 WHEN [@cbParamVirtual1]=2 THEN 125 WHEN [@cbParamVirtual1]=3 THEN 175 WHEN [@cbParamVirtual1]=4 THEN 225 END (replace [@cbParamVirtual1] with your table field) And then select in the calculated field to format to currency. If you're trying to get the value on a dropdown field, does the attached option work by setting the value different to the display in the dropdown options? Quote Link to comment Share on other sites More sharing options...
0 autonumber Posted July 10 Report Share Posted July 10 Hi! Just to add, if you want to just format the value as currency for display purposes only, you may refer to this link - https://howto.caspio.com/datapages/datapage-components/field-formatting-options/ But if you want the value to be saved in a currency format, I highly suggest setting the datatype of your field to currency. You may check this link - https://howto.caspio.com/tables-and-views/data-types/data-types/#:~:text=Currency-,Currency,-Used for money Quote Link to comment Share on other sites More sharing options...
0 Queso Posted July 22 Report Share Posted July 22 Hello @Oakley, is it correct that your cost field's data type is Currency and you would like the value to be shown as $number in the DataPage? Quote Link to comment Share on other sites More sharing options...
Question
Oakley
Have a field that will be a value of 1,2,3,or 4.
based on what the user picks.. the value of the cost field should be
1 - $75
2 - $125
3- $175
4 - $225
i tried it but it needed a currency value. Any help you can give would be great. Thanksm!
Link to comment
Share on other sites
3 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.