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
6 subscribers
Views
2486 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
I need to do a character count on a paragraph field in a form. I have the javasc
sswilliams
over 9 years ago
I need to do a character count on a paragraph field in a form. I have the javascript for the character count. The problem is that the paragraph is setup to 'Allow rich text' and the 'keyup' method is not an available method in the event rule for this type of paragraph. I need the 'keyup' method to run the javascript. Do you have an example of a character count that can be used for a paragraph field that is setup to 'Allow rich text.'? The Rich Text paragraph is a requirement for the model.
OSPRimage.rtf
OriginalPostID-210301
OriginalPostID-210301
Discussion posts and replies are publicly visible
0
Tom Ryan
Appian Employee
over 9 years ago
What version of Appian is this behavior seen in? I see that the keyup event is still available after enabling Rich Text.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sswilliams
over 9 years ago
I'm using v7.8. The method becomes unavailable once the paragraph field is set or saved into the form. The paragraph field was moved into the form, I selected 'Rich Text', I clicked on the Event Rule dropdown and selected the 'keyup' method. I click on the paragraph field and enter the Label, scroll down to the Event Rule dropdown and it is blank. I click to select the method and blur and focus are the only available options in the Event Rule dropdown.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
fabricec
over 9 years ago
One approach will be to use a JS function in the form load event to add a keyup event listener on the paragraph.
But I never succeed this way because I didn't find the solution to get the id of the paragraph ! So I let it down.
Why don't you use a SAIL form ? Are you using the portal ?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sswilliams
over 9 years ago
This is a legacy model and has not been converted to SAIL yet. No, I'm using 'Designer'. Thank you.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel