Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Suggested Answer
Replies
3 replies
Answers
2 answers
Subscribers
9 subscribers
Views
3120 views
Users
0 members are here
Interface
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Decimal validation error for french users
amitas0001
A Score Level 2
over 6 years ago
Hi,
I have one DECIMAL field in an English language based form. With English user it works, but for French users it doesn't validate the field saying it isn't a decimal since they use "," instead of "." for decimal field. I have put the condition for all read only fields and it is working fine only problem is with editable fields since the value is saved in a variable.How can I solve this issue?
Thanks.
Discussion posts and replies are publicly visible
Parents
0
Aditya
Certified Lead Developer
over 6 years ago
hi amitas0001,
a!textField(
label:"",
value:ri!dec,
saveInto: a!save(ri!dec,todecimal(substitute(save!value,",","."))),
validations:if(ri!dec>20,"Error",{})
)
You can use this code to first convert your "," into "." and then save the variable in a decimal type rule input. You can also use validations as shown.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel
Reply
0
Aditya
Certified Lead Developer
over 6 years ago
hi amitas0001,
a!textField(
label:"",
value:ri!dec,
saveInto: a!save(ri!dec,todecimal(substitute(save!value,",","."))),
validations:if(ri!dec>20,"Error",{})
)
You can use this code to first convert your "," into "." and then save the variable in a decimal type rule input. You can also use validations as shown.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel
Children
No Data