Expression box update timing, can it be customized?

L

Lenore Benefield

I've searched help and searched around the Microsoft web site, using
"Expression Box" and "Updating Expressions" and "Dynamically updating
expressions."
Now I admit, I'm stumped again.

I have multiple text boxes on my InfoPath forms. I would like to notify the
user of how much more they can type in, rather than have them compose
something and need to edit it down.

I saw an example of this on the feedback form following an MS Tutorial.
Under the text box it says "Remaining Charaters:" then the number changes as
you type in the text box.

I created a text box on a form (txtReport) with a 255 character limit.
Below the text box I inserted an expression box with the following formula:
255 - string-length(txtReport)

It subtracts the charaters in the text field from 255 after you leave the
field. I can't find instructions for getting it to calcuate and display
during data entry in the txtReport field.

Does anyone know how to do this, or could you point me to the correct help
file?
Any assistance appreciated.
 
A

Agni Reddy

Here is the expression that you need to use to dispaly the right value
"255 - string-length(my:field1)" . This i have set as an expression and it
worked fine.
 
L

Lenore Benefield

Yes, that is the expression I used. I am trying to correct that it will not
continually updates as the user types. I updates after they move to the next
field (or move out of the text box they are typing in.... any ideas?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top