roattw Posted December 12, 2016 Report Share Posted December 12, 2016 Odd situation. I have a form whose results will be send via email but ALSO via a pager. Pager has a 240 character limit. All the form data makes it to the email notification, but gets truncated to the pager. Despite having abbreviated all the field values as best we could depending on what dynamic questions get answered we run out of space. Is there a way I could display a total characters used for the Notification Email fields being sent? Quote Link to comment Share on other sites More sharing options...
LWSChad Posted December 22, 2016 Report Share Posted December 22, 2016 Trigger a javascript function to run with every keystroke object.onkeyup = function(){myScript}; Javascript function to measure String Length - http://www.w3schools.com/jsref/jsref_length_string.asp var str = "Hello World!"; var n = str.length; result of n would be 12 Quote Link to comment Share on other sites More sharing options...
roattw Posted January 30, 2017 Author Report Share Posted January 30, 2017 Thanks for the reply! This might be a good start. But in this example, the characters to count are hard coded into the page (HelloWorld). I would need to have it count all characters entered into form fields. So var str = "Hello World!"; would have to somehow be var str = "ANY entry or selection into any field gets counted "; A Yes/No or other radial button selection also gets a registered value and gets sent to the pager and email, and would have to be counted as well. And I cant figure that out. ;^) How much to consultants charge per hour? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.