locked
Set a value for SharePoint FormFiled by SharePoint designer RRS feed

  • Question

  • Dears,
    I have sharepoint form control and I need to set a value by using share point designer 2007.

    <xsl:value-of select="$JobTit" />
    Here $JobTit has a value and this value i needed to put for the below SharePoint formfiled. I need you help please.

    <SharePoint:FormField runat="server" id="ff9{$Pos}" ControlMode="New" FieldName="JobTitle" __designer:bind="{ddwrt:DataBind('i',concat('ff9',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@JobTitle')}"/>



    Regards
    Shaji
    I am new to SharePoint
    • Moved by Aaron.Parker Sunday, January 8, 2012 5:21 PM Not related to App-V (From:App-V General Sequencing)
    • Edited by ShajiManj Monday, January 9, 2012 5:08 AM
    Sunday, January 8, 2012 4:02 PM

Answers

  • Hi,

    JobTit is a parameter in SPD. Find the JobTitle field in Design view in SPD. In Common FormField Tasks it shows the JobTitle field is a List Form Field, and then change it format as Text Box. Now the SharePoint form control will become <asp:TextBox runat="server" id="ff1{$Pos}" text="{@JobTitle}" __designer:bind="{ddwrt:DataBind('i',concat('ff1',$Pos),'Text','TextChanged','ID',ddwrt:EscapeDelims(string(@ID)),'JobTitle')}" /> . Now just change text="{@JobTitle}" to text="{$JobTit}". Please check if this works.

    Please refer to the second video in this link (it’s about in SP2010, the same in SP2007): http://geekswithblogs.net/SoYouKnow/archive/2010/12/16/creating-a-sharepoint-parentchild-list-relationshipndash-sharepoint-2010-edition.aspx .

    Thanks.


    Emir Liu

    TechNet Community Support

    • Marked as answer by ShajiManj Tuesday, January 10, 2012 5:22 AM
    Monday, January 9, 2012 10:10 AM

All replies

  • Hi,

    JobTit is a parameter in SPD. Find the JobTitle field in Design view in SPD. In Common FormField Tasks it shows the JobTitle field is a List Form Field, and then change it format as Text Box. Now the SharePoint form control will become <asp:TextBox runat="server" id="ff1{$Pos}" text="{@JobTitle}" __designer:bind="{ddwrt:DataBind('i',concat('ff1',$Pos),'Text','TextChanged','ID',ddwrt:EscapeDelims(string(@ID)),'JobTitle')}" /> . Now just change text="{@JobTitle}" to text="{$JobTit}". Please check if this works.

    Please refer to the second video in this link (it’s about in SP2010, the same in SP2007): http://geekswithblogs.net/SoYouKnow/archive/2010/12/16/creating-a-sharepoint-parentchild-list-relationshipndash-sharepoint-2010-edition.aspx .

    Thanks.


    Emir Liu

    TechNet Community Support

    • Marked as answer by ShajiManj Tuesday, January 10, 2012 5:22 AM
    Monday, January 9, 2012 10:10 AM
  •  

    Much Thanks dear Emir.  Your solution solved my issue. Its perfect. 

     

    Regards

     

     

     


    I am new to SharePoint
    Tuesday, January 10, 2012 5:22 AM