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
3119 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
0
abishekk109
over 6 years ago
Please make those field to be a text field. so the value entered will be stored in the variable. After that in the process create a rule to convert the value into a decimal value and save it in db. By doing this you should make sure when we retrieve from db the decimal value should be converted back to the text form for the user to view it how they entered.
Hope this helped. Let me know if u want more on this.
Thanks,
Abishek.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel
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
0
TJ
over 6 years ago
I feel solution provided by
abishekk109
will be more appropriate in your case.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel