Reg Sequence number
Hi folks,
I have a Item ID in the eForm first section. The form has lot of sections and each section has subforms. Now i need to access this ItemID inside subforms to store in SharePoint list.
Can anyone please suggest a way?
-
Hello Krish,
To bind data inside the subform control, you can make use of AgilePoint eformhelper method to achieve your requirement. Please refer to the below sample code snippet and the documentation link to get and set the value to the control.
- https://documentation.agilepoint.com/00/appbuilder/cloudjsGetFieldValue.html
- https://documentation.agilepoint.com/00/appbuilder/cloudjsSetFieldValue.htm
function BindDataToSubform()
{
var Itemno = getFieldValue('ItemId')
setFieldValue('TestSubForm/TextBox2',Itemno)
}
function getFieldValue(fieldId)
{
var options = {};
var responseData= "";
options.fieldId = fieldId;
eFormHelper.getFieldValue (options, function (result)
{
if (result.isSuccess)
{
responseData = result.data;
}
});
return responseData;
}
function setFieldValue(fieldId,value)
{
var options = {};
options.fieldId = fieldId;
options.value = value;
eFormHelper.setFieldValue(options, function (result)
{
if (result.isSuccess)
{
console.log(result.data);
}
});
}
Regards,
Aravind
请先登录再写评论。
评论
1 条评论