PlaceHolder text not getting updated - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

PlaceHolder text not getting updated

Last post 01-16-2009 05:05 AM by swathip. 7 replies.
Page 1 of 1 (8 items)
Sort Posts: Previous Next
  • 01-16-2009 02:41 AM

    PlaceHolder text not getting updated

    Hi, I have a textbox("/my:myFields/my:otherQualityReviewers") which has a placeholder text that reads like this " click and type". When i set the value of this textbox to null or string.empty through code. as below, the placeholder is lost. thisXDocument.DOM.selectSingleNode("/my:myFields/my:otherQualityReviewers").nodeTypedValue = string.Empty; Please let me know, what i must do to ensure placeholder is visible after code manipulation. Regards, Saikrishna
  • 01-16-2009 03:05 AM In reply to

    Re: PlaceHolder text not getting updated

    Hi

    I tried by setting the text box value to string.empty  in onclick event and it is working fine.Can you check once again the placeholder text in the text box.

    Madhuri
    http://www.ggktech.com
  • 01-16-2009 03:33 AM In reply to

    Re: PlaceHolder text not getting updated

    thanks for reply. Please explain, for which event did that work. I have a button on whose click, i am trying to set the textbox value as string.empty(i am able to set the textbox value as null) but placeholder is gone. Regards, Saikrishna
  • 01-16-2009 03:45 AM In reply to

    Re: PlaceHolder text not getting updated

    Hi 

    1.Open infopath in design mode
    2.Right click on the text box
    3.Select Text Box Properties
    4.Click on Display tab
    5.In Placehoder text box, type the text
    6.Click ok
    7.Add a button and write a code on it

    Madhuri
    http://www.ggktech.com
  • 01-16-2009 03:56 AM In reply to

    Re: PlaceHolder text not getting updated

    thanks again, for the reply. I am doing just this. The textbox value becomes null but placeholder is gone. Regards, SaIkrishna
  • 01-16-2009 04:07 AM In reply to

    Re: PlaceHolder text not getting updated

    Hi

    Try by deleting the text box and readd it and add the placeholder again and then build the solution.

    Madhuri
    http://www.ggktech.com
  • 01-16-2009 04:17 AM In reply to

    Re: PlaceHolder text not getting updated

    Hi, no luck even now. This is what i did. 1 Added TextBox to InfoPath. 2 Added PlaceHolder to this TextBox 3 Added Button to infopath 4 Through VSTA Coding, does this thisXDocument.DOM.selectSingleNode("/my:myFields/my:field1").nodeTypedValue = string.Empty; 5 Preview the form, placeholder is visible 6 click the button, the placeholder is deleted.(although there is no text n the textbox) Regards, SaiKrishna
  • 01-16-2009 05:05 AM In reply to

    Re: PlaceHolder text not getting updated

    Hi Sai Krishna,

    I have followed the steps what you said. Every thing is working fine. Place holder is visible after clicking the button also. Can you attach the form that you are using? So that we may help you.

    Swathip
    www.ggktech.com
Page 1 of 1 (8 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.