Instantly update a textbox - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Instantly update a textbox

Last post 07-05-2010 11:21 PM by Qazi Anis. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 07-01-2010 09:22 AM

    Instantly update a textbox

    Hello. I'm new to these forums and to InfoPath, and I have a quick question.

     I'm trying to create an input form similar to a text message. I have a large textbox for the message, and I have a small textbox that is read-only that I want to show the character count.

    I got this to work by setting the default value of the small textbook to the string length of the large textbox. This works correctly, but I would like to update the small textbox every time a character is entered into the large textbox, not every time I click off of the large textbox.

    Any help would be much appreciated.

     

     

     

    Filed under:
  • 07-01-2010 05:03 PM In reply to

    Re: Instantly update a textbox

    As per I know this can be done using KeyPress event - again, I am not sure how to invoke those events in InfoPath.

    Aruna Akella
    Qdabra® Software / InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™
  • 07-01-2010 08:11 PM In reply to

    Re: Instantly update a textbox

    In general, InfoPath can only respond to events when a field's value is finished being modified.  You might be able to accomplish what you want using a custom ActiveX control.  I've never forayed into this area, and it's not for the faint of heart or inexperienced.

    http://blogs.msdn.com/b/infopath/archive/2005/04/15/creating-an-infopath-custom-control-using-c-and-net.aspx

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 07-02-2010 10:18 AM In reply to

    Re: Instantly update a textbox

    Thanks for your help. I'll look into both of those options.
  • 07-05-2010 11:21 PM In reply to

    Re: Instantly update a textbox

     you can use java script to achieve this, i would suggest using this path only if you know what you are doing.

    Qazi Anis
    Technical Architect
    Bitwise Inc
Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.