Pass Values to Edit Form thru Query String and Save in List

I have developed a custom Edit form from SharePoint Designer and I am passing values thru Query String as below;

http://<>/cli/acc/Lists/GIInfo/testEdit.aspx?ID=262&com=POD_Send

And, user supposed to save the form directly without changing the values came thru Query String as below. enter image description here

Now, issue is, when user saves the form, values is not getting saved. It saves when we change the value in text box or when we do a text change event in form. Becasue data binding says Text Change even in data binding property.

__designer:bind="{ddwrt:DataBind('u',concat('ff22',$Pos),'Text','TextChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Actions')}"/>

Kindly guide me what is the issue, or correct approach to do that? I want to pass values to Edit Form thru Query string and save in List without changing

May 9th, 2014 9:48am

Hope below should help you

http://sharepointsimplified.wordpress.com/2010/12/03/how-to-pass-query-string-parameters-in-the-sharepoint-default-forms-from-a-data-view-web-part/

http://prasantabarik.wordpress.com/2013/09/26/pass-querystring-value-from-sharepoint-page-to-app-partclient-web-part/

<script>
var arrFrames = document.getElementsByTagName(iframe);
for(i = 0; i< arrFrames.length; i++)
{
var iFrame=arrFrames[i];
var clientID=QueryStringIDValue;
if(iFrame.src.indexOf(clientID) != -1)
{
alert();
var queryStringValue=getQuerystring(QueryStringID);
if(queryStringValue != null)
{
iFrame.src=iFrame.src.replace(clientID,queryStringValue);
}
}
}

function getQuerystring(key)

{
key = key.replace(/[\[]/,\\\[").replace(/[\]]/,\\\]);
var regex = new RegExp([\\?&]+key+=([^&#]*));
var qs = regex.exec(window.location.href);
if(qs == null)
return null;
else
return qs[1];
}

</script>

Free Windows Admin Tool Kit Click here and download it now
May 9th, 2014 10:28am

I know this is late, but i found a very good solution on this post and credit goes to the author.

https://social.msdn.microsoft.com/Forums/sharepoint/en-US/4be1be38-0663-4b80-8f28-45f38f98f9d0/sharepoint-designer-2010-custom-newformaspx-data-in-textbox-fields-dont-save-on-submission?forum=sharepointcustomizationprevious

The issue was resolved by changing the textbox values,

<asp:TextBox runat="server" id="ff1{$Pos}" Name="Title" Text="" Value="{$Destination}"  __designer:bind="{ddwrt:DataBind('i',concat('ff1',$Pos),'Text','TextChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Title')}">

instead of

<asp:TextBox runat="server" id="ff1{$Pos}" Name="Title" Text="{$Destination}"  __designer:bind="{ddwrt:DataBind('i',concat('ff1',$Pos),'Text','TextChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Title')}">

April 13th, 2015 2:14am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics