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
9 replies
Subscribers
9 subscribers
Views
4273 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Hi, Is there a way where I can restrict number field box to display j
Sumeet Khare
over 10 years ago
Hi,
Is there a way where I can restrict number field box to display just 3 characters?
OriginalPostID-141781
OriginalPostID-141781
Discussion posts and replies are publicly visible
0
Stefan Helzle
A Score Level 3
over 10 years ago
To just display a number you can use a textfield and the text() function for formatting.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Sumeet Khare
over 10 years ago
thanks for reply but thats not what I am looking for. Let me try to explain it: if we want to enter 16 digit credit card number then I want the first box of 4 numbers to have box size of 5 characters only.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Sumeet Khare
over 10 years ago
Please refer to the screen shot.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Stefan Helzle
A Score Level 3
over 10 years ago
So you want the input field to be smaller of size. That is not possible AFAIK.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Stefan Helzle
A Score Level 3
over 10 years ago
You might be able to "fake" that using a single row grid. But I don't know if it's possible to have a grid without headers.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Stefan Helzle
A Score Level 3
over 10 years ago
I did a small test.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
anshuk170
over 10 years ago
HI you can use validation on the field like below:
a!textField(
label: "INPUT",
labelPosition: "ABOVE",
value:ri!input,
saveInto: ri!input,
refreshAfter: "UNFOCUS",
validations: if(len(ri!input)>4,"Not more than 4",""),
align: "LEFT"
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Sumeet Khare
over 10 years ago
thanks guys for your valuable suggestion.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Mike Schmitt
Certified Lead Developer
over 10 years ago
you can also use complicated variations in the saveInto: field and have the box refuse to accept additional characters - but it's difficult to get it to work just right.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel