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
5 replies
Subscribers
7 subscribers
Views
1809 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Second is there a way that we could alert users that enter data via work request
johne
over 9 years ago
Second is there a way that we could alert users that enter data via work requests or through tasks that they’ve exceeded the field character limit. Users are having issues with process getting suspended due to too many characters entered in certain fields as they don't get a warning to indicate that the field size has been exceeded.
OriginalPostID-158321
OriginalPostID-158321
Discussion posts and replies are publicly visible
0
Tim
Certified Lead Developer
over 9 years ago
It sounds like you are still using the old portal interface? You can use JavaScript to validate the field length but it is not recommended anymore. Another option is to test the pv value using the len() function and loop back if the value is too long and display a message to the user.
Ideally though you should be migrating to Tempo where this type of dynamic form is simple and native in SAIL.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
johne
over 9 years ago
hello, we are currently using Tempo and will be upgrading to 7.9 in the next few weeks.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tim
Certified Lead Developer
over 9 years ago
Then you can use the validation attribute on your text and paragraph fields and an expression to test it:
if(len(ri!myField)>50, "Too many characters", {})
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tim
Certified Lead Developer
over 9 years ago
forum.appian.com/.../SAIL_Recipes.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
narasimhaadityac
A Score Level 2
over 9 years ago
Hi John, Also please check for the option of using "KEYPRESS" so that the expression is evaluated as the user types in, rather than displaying the error message after the focus of the field is lost.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel