Stump the Panel Topic: When mouse over field in form, how change text displayed http://www.endusersharepoint.com/STP/ Paul Grenier, Lead Moderator en Mon, 20 Apr 2009 04:29:48 +0000 AutoSponge on "When mouse over field in form, how change text displayed" http://www.endusersharepoint.com/STP/topic/when-mouse-over-field-in-form-how-change-text-displayed#post-5911 Wed, 15 Apr 2009 18:32:26 +0000 AutoSponge 5911@http://www.endusersharepoint.com/STP/ <p>Ruanape,</p> <p>First, we have to grab the text from the description field. Using jQuery, I do something like this to see what I'm working with:</p> <pre><code>$(&quot;td.ms-formbody:visible&quot;).each(function(i,e){ var t = $(e).text().replace(/\s+/g,&quot; &quot;); console.log(t); });</code></pre> <p>Then you have to pick or develop a tip style. There are several tooltip plugins and scripts to poll for examples.</p> <p>Then add the content you collected to the row and remove the content from the default location. Getting the data to look nice may take some practice.</p> <p>If jQuery fails to load, the descriptions will remain in the default location. </p> RUANAPE on "When mouse over field in form, how change text displayed" http://www.endusersharepoint.com/STP/topic/when-mouse-over-field-in-form-how-change-text-displayed#post-5902 Wed, 15 Apr 2009 14:50:44 +0000 RUANAPE 5902@http://www.endusersharepoint.com/STP/ <p>I like it, sounds like the easiest solution I have heard of yet. How do you do it? </p> AutoSponge on "When mouse over field in form, how change text displayed" http://www.endusersharepoint.com/STP/topic/when-mouse-over-field-in-form-how-change-text-displayed#post-5895 Wed, 15 Apr 2009 14:16:42 +0000 AutoSponge 5895@http://www.endusersharepoint.com/STP/ <p>You can do this with some JavaScript. The problem with a central list of help text is that fields could have the same name but mean something different on different lists. You would need to be most specific.</p> <p>Besides, fields already have description text (although I hate where it appears), this text is more accessible because it displays inline with the form field.</p> <p>A simpler approach that will degrade nicely and work without additional calls is to just wrap the field description text into a tooltip and appears when you hover, click, focus, etc.</p> <p>What do you think of that approach? </p> RUANAPE on "When mouse over field in form, how change text displayed" http://www.endusersharepoint.com/STP/topic/when-mouse-over-field-in-form-how-change-text-displayed#post-5887 Wed, 15 Apr 2009 11:12:04 +0000 RUANAPE 5887@http://www.endusersharepoint.com/STP/ <p>Actually, i am trying to do this in the NewForm.aspx </p> eric on "When mouse over field in form, how change text displayed" http://www.endusersharepoint.com/STP/topic/when-mouse-over-field-in-form-how-change-text-displayed#post-5879 Wed, 15 Apr 2009 09:13:10 +0000 eric 5879@http://www.endusersharepoint.com/STP/ <p>Is this in the DispForm.aspx or in a Infopath form? </p> RUANAPE on "When mouse over field in form, how change text displayed" http://www.endusersharepoint.com/STP/topic/when-mouse-over-field-in-form-how-change-text-displayed#post-5867 Tue, 14 Apr 2009 15:26:36 +0000 RUANAPE 5867@http://www.endusersharepoint.com/STP/ <p>I am using MOSS 2007, and I am trying to have it so when a user puts the cursor over a field in a form they need to fill out, text will show explaining what is needed in that particular field. Ultimately, I would love to bind each field to a coresponding description located in a 'field help' list. The list has only 2 columns; a name column and a description column. I only have access to SP designer 2007. Hopefully I gave enough info for someone to help me....I'm stumped. </p>