I have designed an Infopath form, picture button is placed inside the repeat table. When the button is clicked, I want to remove the current row of the repeat table, so have added the code mentioned below
e.Source.DeleteSelf()
it works if I test the Infopath form locally however unable to deploy it into the SharePoint 2010.
it throws the below error:
Sandbox solutions are not enabled on the SharePoint server form.
To continue, contact a site collection or farm administrator to publish the form template as an administrator-approved form template.