Sol Web Solutions Blog

Sol Web Solutions Blog is aimed to help, inform, educate and enable our site visitors.

  • Home
    Home This is where you can find all the blog posts throughout the site.
  • Categories
    Categories Displays a list of categories from this blog.
  • Tags
    Tags Displays a list of tags that have been used in the blog.
  • Login
    Login Login form

Using jQuery to Find texbox value in SharePoint InfoPath form

Posted by on in SharePoint
  • Font size: Larger Smaller
  • Hits: 26761
  • Subscribe to this entry
  • Print

To find the value in an InfoPath form, we had to take a different approach than when using the DispForm.aspx page.

As usual, we loaded the .js file in the SharePoint site via a document library, and used either Firefox or Chrome to find the id of the textbox or element that stored the value we wanted to put into localStorage.


The code used is as follows:

window.on-load = function(){

//below line in especially important as it is required b/c of dealing with InfoPath

window.setTimeout(readyCall, 1000);


function readyCall(){

//below long string is what you can find via Firefox Firebug or in Chrome

var PIDString = $("#blahblahblah___yourlongstring___6a_bdfb_77ddb49aa15f_FormControl0_V1_I1_D1").val();




Hope this helps others out there!



  • No comments made yet. Be the first to submit a comment

Leave your comment

Guest Monday, 18 March 2019

Help Today

Send an email here!

Sol Web Solutions will be glad to help you anytime with general or technical questions, suggestions or comments.

Website Hosting

Web Hosting

Sol News

We will not share, trade, or sell any of your information in any way. Your privacy is completely respected.