Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
+1
person also asked this
people also asked this
Replies
10 replies
Subscribers
7 subscribers
Views
9135 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Display Number in Dollar() Format
zrizvi
over 8 years ago
Can someone please tell me the best way to display this decimal number in dollar() format in my SAIL form? Here's my code:
a!floatingPointField(
label: "Total Cost",
labelPosition: "ABOVE",
value: ri!totalCost,
saveInto: ri!totalCost
refreshAfter: "UNFOCUS",
required: true,
validations: {}
)
OriginalPostID-247183
Discussion posts and replies are publicly visible
Parents
0
sikhivahans
over 8 years ago
@rizviz Have a look at the above mentioned recipe and see how you can make best use out of the text functions to format the contents as desired. The error you are facing is because of using the incorrect statement as follows:
saveInto: todecimal(save!ri!totalCost)
/*Instead it should be saveInto:todecimal(save!value)*/
Another standard way is to have the type of currency associated with the name of field (Ex: Total cost ($)) or instructions saying that the value entered is in dollars.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
sikhivahans
over 8 years ago
@rizviz Have a look at the above mentioned recipe and see how you can make best use out of the text functions to format the contents as desired. The error you are facing is because of using the incorrect statement as follows:
saveInto: todecimal(save!ri!totalCost)
/*Instead it should be saveInto:todecimal(save!value)*/
Another standard way is to have the type of currency associated with the name of field (Ex: Total cost ($)) or instructions saying that the value entered is in dollars.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data