Skip to main content

Posts

Showing posts from May, 2012

Telephone format for a text box on infopath form

If you want to create a Telephone format on a infopath form : 1. Add a text field to the form (Even if it is the list or a blank form) 2. Select the text box and click on Manage Rules 4. Add a rule to your textbox control with the following conditions (make sure to select "and" operator):     a. field "does not match pattern" Phone number     b. the expression: string-length(translate(., "()- ", "")) = 10     c. the expression: string-length(translate(., "()- 0123456789", "")) = 0 5. Add action to the rule:     a. Set a field's value     b. Select your textbox field     c. Insert formula for the value (click the fx button): concat("(", substring(translate(., "()- ", ""), 1, 3), ") ", substring(translate(., "()- ", ""), 4, 3), "-", substring(translate(., "()- ", ""), 7, 4)) Link for the detailed explanation :  http:

Code to embbed youtube video on sharepoint site

In content editor web part : <object style="height: 390px; width: 640px"><param name="movie" value="http://www.youtube.com/v/TE9TpraPlrE?version=3"><param name="allowFullScreen" value="true"><param name="allowScriptAccess" value="always"><embed src="http://www.youtube.com/v/ 9bYVUvWJ3fs ?version=3" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="640" height="360"></object>

How to Hide Column Header from the List webpart

Hi All, I had a situation today with list webpart. I created a list for A-Z Index list and created views for all the letters and applied as list webparts on a page. It was showing only the links which starts with the letters (for Example: Under A it was showing only the links which starts with A and so far). I'm getting carried away!! Sorry!! The column title was showing on all the list webparts that were placed on that page and it was looking very awkward. I tried to chekc for some options on the "view" but No success!! I wanted to call this list in content query web part and resolve it ( with one of my friend suggestion!!!) but looks kinda complicated. As a final attempt I wanted to see the css class which is controlling this title header and then bingo!!!!!!! Here is the solution : 1. Place the list as a webpart on a page. 2. Add a content editor webpart on the page (make it hide by taking crome type : none) 3. Add this piece of code on the source editor