.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

infopath change link tekst with getelementByTagName

Posted By:      Posted Date: October 08, 2010    Points: 0   Category :SharePoint

i have  2 questions:


when you create a new document library, you have a link that points to the upload.aspx page.

i whant to change this link.

i can find the tag name, and also change the "link text name", link the following example

var ttnA = document.getElementsByTagName('A');
for (var j=0; j<ttnA.length; j++)
  if (ttnA[j].id == 'idHomePageNewItem')
      ttnA[j].innerHTML= 'Upload new document';

how do i change the link to a different page?


How can you hide the "new document" button in the ribbon?

with javascript code

are there 2 issiues possible, is yes how.


View Complete Post

More Related Resource Links

Link goes to next page but url doesn't change?


I have a text input to get a 'roomID' and an ASP button that calls an 'enterRoom' function:

roomID:<asp:TextBox runat="server" ID="roomID"></asp:TextBox>
                <asp:Button ID="Button1" runat="server" Text="Enter Room!" OnClick="enterRoom" />

In my head tags I have my enterRoom Sub:
    <script runat="server">
        Sub enterRoom(ByVal sender As Object, ByVal e As System.EventArgs)
            Server.Transfer("users/room.aspx?roomID=" & Request.Form("roomID"))
        End Sub

Now when I click that button it essentially goes to the right page in all ways but the URL stays as my default.aspx instead of changing to users/room.aspx?roomID=23423. I've tried it in IE and Firefox with the same results. Is this something I'm not understanding about Server.Transfer or why is this happening and how do I fix it?

How to remove underline from Hyperlink and change the color of the link

How to remove underline from Hyperlink and change the color of the link

How to Change the Color of Link Label which is a Datagridview Column on a Row Selection?

Hi All I have a Link label as one of the column of Datagridview & also my SelectionBackColor set to Blue. Is there any way that i can change the link label color on a particular row selection as now my selectionbackcolor & link label color is matching...I am unable to the contents of that link label column. Should i do this on design level or in code level? Pls Help

How can I change XSL in WSS 3.0 for Search Layout - I need to add a button\link "Edit Item"?

Hi, WSS 3.0 on SQL Server 2008 for Workgroups Does anyone know where the xsl file is to change the Search Layout (NOT MOSS) and/or do you know of any links that are useful? Thanks. John.

Dynamic change home link in reporting services

I have a site setup to use forms authentication, when a user logs in I want it to go to a specific folder for that user. I am able to do this by changing where the site gets redirected to by using appending ?ItemPath=/FolderName at the end of the path. There is a link that says home in the upper part of the page, I would like this to also reflect the default folder for this user. Is it possible to change this? I do not want to hide it in the CSS as it makes navigation a little more difficult as the user will have the ability to create separate folders inside of the folder. I am using SQL 2008 r2.

InfoPath toolbar button name change


How do I change the name of the buttons on the InfoPath toolbar? I want to change the names of the Save and Submit buttons to display something else.

Link Directly to InfoPath Web Form

I've got an InfoPath form connected to a form library.  I have it configured to use the browser to fill it out.  When I go to the library and click "New" everything works GREAT.  What I want to do is provide a link off my home page directly to the form itself.  Is this possible?  When I just copy the URL, it prompts the user to Open/Cancel/Save the xsn.  That's not what I'm looking for.

InfoPath Link Error



When I choose 'Customize Form' from within a SP2010 list, I'm getting the following error:

The SOAP response indicates that an error occurred on the server:

Server was unable to process request. ---> List does not exist.

The page you selected contains a list that does not exist.  It may have been deleted by another user. ---> List does not exist.

The page you selected contains a list that does not exist.  It may have been deleted by another user.

Any quick fix for this? :)



Is it possible to change text orientation in InfoPath 2010?



I cant find how to change text orientation in InfoPath 2010. Who knows how to do it? I want my text has 90' orientation. There is no problem to do it in Excel. Is it possible to do in InfoPath2010? 

Link to Infopath Form web filler


Hi guys,

Does anyone know how link to sharepoint so that it opens an Infopath 2010 form through the web interface as opposed to the desktop client? If u use the Encoded Absolute URL in my workflow emails it tries to download / open the document through my desktop client.


The world is the mollusc of your choice

how to change the color of disabled link button in gridview



how to change the color of disabled link button in gridview?.. 

Change Top Nav "Home" Link without changing site title?


Is it possible to change the top navigation bar "home" link (i.e. the selected top-left navigation item) without changing the site's title?

This is for a site configured with the Global Navigation set to: "Display the navigation items below the current site".

So, for example, if the site is called "Team Site", then the top-left navigation link will be called "Team Site". I would like to change the navigation link text, but keep the site title.

Infopath will not allow to customize list forms if the list contains lookup fields with "link to ite


I am posting this here, because the error message is a little misleading: It will say that you may have an incompatible field types, corrupt fields, or fields are mandatory and should not be. As a remedy it's suggested to either make them non-mandatory fields or to delete them and recreate them.

Solution: Just lookup to your field without the "link to item" option. 


New/Edit Default Form Link for InfoPath Created Forms


I've created 2 forms using InfoPath (Edit & New).  Both forms publish correctly, however I would like the "New" form to display by default when a user creates a New list item, and the "Edit" form to display (by default) when a user attempts to Edit an existing item.

Currently, Each form is available, but the New Form displays by default for either action.  The get the Edit form, the user has to select the the Edit form from the View dropdown box.  I'd really rather not have the dropdown box at all, and simply open the correct form per the action requested by the user.


InfoPath -Validate a Field Based on ANY change in a Secondary Field


I would like to require a change to one field if a secondary dropdown field is changed at all.  At Minimum I would like to change the formatting or color of the field in question.


How to calcuate percent change in Infopath


Hi maybe someone out there can help me.  I need to calculate percent change in an InfoPath form services form. 

Using Excel, the formula would be: (NewSalary - OldSalary)/ABS(OldSalary).

Unfortunately, InfoPath 2007 does not seem to offer an ABS function.  I tried using an xpath expression with fn:abs(OldSalary) but no luck.

Thanks in advance for your help,


How to change the way the infopath form saves data in SharePoint library (Ex: Person/Groups field is

Person/Group field is taken as an integer field in SharePoint form library when a form is submitted. I need to retain it as Person/Group column in the SharePoint form library too. Please help on the same. Thanks.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend