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
Replies
4 replies
Subscribers
7 subscribers
Views
2073 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Hi Everyone, On SAIL form, I am using Paragraph field to Write descri
rishub356
over 10 years ago
Hi Everyone,
On SAIL form, I am using Paragraph field to Write description. The limit for that field is 170 characters. I want that if user tries to write the charcters more than limit, the paragraph won't allow user to enter more characters. can anybody guide how to do it?
Thanks.
OriginalPostID-137770
OriginalPostID-137770
Discussion posts and replies are publicly visible
0
Tim
Certified Lead Developer
over 10 years ago
A number of SAIL examples can be found in the help pages covering exactly what you're asking and many other scenarios so I suggest you read through them:
forum.appian.com/.../SAIL_Recipes.html
It sounds like you want the component to not allow further entry at your size limit but this is not possible.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Mike Schmitt
Certified Lead Developer
over 10 years ago
It seems that it might be possible to tweak the SaveInto's in such a way that once the limit is reached, it refuses to save any further characters - however this would require using "refresh after keypress" and it seems that it would be costly in terms of performance.
I suggest looking into what Tim suggests - I've done something similar myself, where the field fails validation if it's over X characters (where X is the limit), and the validation message says something like "The limit is X characters; currently entered: Y characters" (so the user has some gauge on how "over" they are).
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tim
Certified Lead Developer
over 10 years ago
You could use:
saveInto: a!save(ri!myVar, left(save!value, 170))
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
utkarshs
over 9 years ago
Why don't you use len() function in validation, if (len ri!YourVariable>170, "Value exceeding 170 chars", {})
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel