Creating a folder in a library and submitting a form



Similar documents
Custom fields validation

How-To: Submitting PDF forms to SharePoint from custom websites

Step by Step. Use the Cloud Login Website

How To Create A Hyperlink In Publisher On Pc Or Macbookpress.Com (Windows) On Pc/Apple) On A Pc Or Apple Powerbook (Windows 7) On Macbook Pressbook (Apple) Or Macintosh (Windows 8

STX Beacon User Guide Refer A Friend

c360 SharePoint Integration User Guide Microsoft Dynamics CRM 4.0 compatible c360 Solutions, Inc.

Web Forms. Step One: Review Simple Contact Form

NetBeans IDE Field Guide

The IT Service Desk is now able to offer a new self-service facility for University staff and students.

Using SMIGRATE to Backup, Restore and Migrate Team Sites in SharePoint Products and Technologies 2003

So You Want to Save Outlook s to SharePoint?

Getting Started with SharePoint Three projects. Legislative Service Center (LSC) Homepage Employee Bulletin Board CMS to SharePoint Migration

SharePoint Integration

1 Classified Script. User Guide v1.0

Tutorial on Operations on Database using JDeveloper

Learn how to create web enabled (browser) forms in InfoPath 2013 and publish them in SharePoint InfoPath 2013 Web Enabled (Browser) forms

Monitoring Oracle Enterprise Performance Management System Release Deployments from Oracle Enterprise Manager 12c

Create a new investment form and publish it to a SharePoint 2013 forms library

Save and Share Files in the Cloud with OneDrive for Business

How to Attach the Syllabus and Course Schedule to a Content Item

T320 E-business technologies: foundations and practice

Vizit 4.1 Installation Guide

Installation Guide v 2.0

Step by Step. Transfer a Library File from one PC to Another. This How To article explains how to move a library file from one PC to another

EFORMS MANUAL FOR SHAREPOINT ONLINE

Virto Workflow Scheduler For Microsoft SharePoint Release User and Installation Guide

Best Available Integration of Outlook and SharePoint

SP Term Cloud Installation

Developing Microsoft SharePoint Server 2013 Core Solutions

SAP" Interactive Forms by Adobe*

ARCONICS CONTENT MANAGEMENT SYSTEM FOR UL

BusinessObjects Enterprise XI Release 2

MAKE A NEW SUBSITE 1. On the left navigation, click Site Contents (or Sites). Scroll down to subsites. Click new subsite.

Using Application Insights to Monitor your Applications

ASP.NET: THE NEW PARADIGM FOR WEB APPLICATION DEVELOPMENT

HarePoint Workflow Extensions for Office 365. Quick Start Guide

User Guide. What is AeroFS. Installing AeroFS. Learn How to Install AeroFS and get started syncing and sharing securely INTRODUCTION

On premise upgrade guide (to 3.3) XperiDo for Microsoft Dynamics CRM

A SharePoint Developer Introduction

SharePoint Wiki Redirect Installation Instruction

Free Project Management Templates. Install Guide

How to integrate dox42 into MS SharePoint 2013 lists and libraries

Quick Start Guide. Installation and Setup

Understanding the Basic Template Editor

NetWrix File Server Change Reporter. Quick Start Guide

This feature allows you to convert a collection of PDFs into EndNote references using the Digital Object Identifier (DOI).

Form Management Admin Guide

DocuSign for SharePoint

Getting started with 2c8 plugin for Microsoft Sharepoint Server 2010

DocuSign for SharePoint Online v2.4

Adding a File Attachment to a CFS Requisition

Administrator s Plus. Backup Process. A Get Started Guide

About SharePoint Server 2007 My Sites

Setting Up Peak Performance Group Policies

Orthopaedics SharePoint Site: User Guide. Version: Page 1 of 19

Hands-On Lab. Client Workflow. Lab version: Last updated: 2/23/2011

Setting Up Jive for SharePoint Online and Office 365. Introduction 2

Best Available Integration of Outlook and SharePoint

System Center 2012 R2 Lab 5: Application Management

INFORMATIX SharePoint 2013

UF Health SharePoint 2010 Introduction to Content Administration

Web Made Easy. Planning Session

Intro to Developing for SharePoint Online: What Tools Can I Use?

SFC Featured Categories, Magento Extension Documentation

Microsoft SharePoint 2010 End User Quick Reference Card

How to Create a Delegated Administrator User Role / To create a Delegated Administrator user role Page 1

How To Create A Team Site In Windows.Com (Windows)

IBM Script Portlet for WebSphere Portal Release 1.1

Outbound Upgrade Manual. SDL Tridion Development Lab BV

Mitigation Planning Portal (MPP) Tutorial Canned Reports Updated 5/18/2015

Add Approval Workflow

How to Create a Mobile Responsive Template in ExactTarget

NetWrix SQL Server Change Reporter

Shasta College SharePoint Tutorial. Create an HTML Form

14 Configuring and Setting Up Document Management

Customer to Partner Relationship

Manual for Short Course Student Management System.

Table of Contents. 1. Content Approval...1 EVALUATION COPY

Table of Contents. 1. Software House Website Login. a. Forgot My Password Recovery Feature. 2. Site Registration. a. Creating Your Account

Editor Manual for SharePoint Version December 2005

Office 365 SharePoint Site Admins Quick Reference

Virto Password Reset Web Part for SharePoint. Release Installation and User Guide

Engage ios App Administrator s Guide

Business Portal for Microsoft Dynamics GP Field Service Suite

Netsmart Sandbox Tour Guide Script

SPHOL326: Designing a SharePoint 2013 Site. Hands-On Lab. Lab Manual

Let s say you wanted to link to the Commuter Services page within the Student Life department. On the live site, the page can be found here:

All of the IntelliGanttt functions are accessed directly in Microsoft Project from the IntelliGanttt menu on the menu bar.

Project Server Plus Risk to Issue Escalator User Guide v1.1

Transcription:

PDF SHARE FORMS Online, Offline, OnDemand PDF forms and SharePoint are better together Creating a folder in a library and submitting a form Product: PDF Share Forms Enterprise for SharePoint 2010 and PDF Share Forms Enterprise for SharePoint 2013

Content PDF Share Forms Enterprise for SharePoint 2013... 2 Static (Acro) and Dynamic (XFA) forms... 2 PDF Share Forms Enterprise for SharePoint 2010... 5 Static (Acro) form... 5 Dynamic (XFA) form... 7 Execute C# script action s script in the Form Submit rules... 9 This guide shows how to create a folder with a user-selected name and submit a form into this folder. Method contains server-side and client-side scripting. PDF Share Forms Enterprise for SharePoint 2013 Static (Acro) and Dynamic (XFA) forms This approach works both for static and dynamic forms. Step 1. Template Submit button for form submitting; TextField2 value from this field is used to set a name of the target folder. 2

Step 2. Add Execute C# script action before Save Form action in Form Submit rules. Navigate to Developer Form Submit if (form.isnew()) { var unsafeupdate = currentweb.allowunsafeupdates; currentweb.allowunsafeupdates = true; var foldername = data.resolvenode("textfield2").value; var getexisting = currentweb.getfolder(string.format("{0}/yourlistname/"+data.resolvenode("textfield2").value, currentweb.url)); //this line of code searches for a folder by its name //. If the folder does not exist then a new folder is created and the form will be submitted into it if(!getexisting.exists){ SPList list = currentweb.lists["yourlistname"];//list name should be specified for a proper case SPListItem folder = list.additem(list.rootfolder.serverrelativeurl, SPFileSystemObjectType.Folder, foldername); folder.update(); data.getsystemfield("folderid").value= folder.uniqueid.tostring(); } //if the folder exists then the form issubmitted into it else data.getsystemfield("folderid").value= getexisting.uniqueid.tostring(); currentweb.allowunsafeupdates = unsafeupdate; } This script checks if the folder with the name that is taken form TextField2 already exists. If the folder exists then the form will be submitted to this folder. If the folder does not exist then a new folder is created and the form will be submitted into it. Step 3. Deploy template. 3

Step 4. Open new form and add value to TextField2. Click submit. Step 4.1 New folder named Hello World is created and the form is submitted into this folder 4

PDF Share Forms Enterprise for SharePoint 2010 Static (Acro) form Step 1. Template SubmitButton1 button for form submitting; TextField2 value from this field is used to set a name of the target folder. Step 2. Add Execute C# script action before the Save Form action in Form Submit rules. Navigate to Developer Form Submit 5

Step 3. Add Java action to the submit button. Choose the button and navigate to PDF Form Tools Properties Actions place Java action above Submit to SharePoint action. this.getfield("pdfspsystemdata").value = this.getfield("pdfspsystemdata").valueasstring.replace("\\\"rootfolder\\\":\\\"/yourrootfolder\\\" ","\\\"RootFolder\\\":\\\"/YourRootFolder/"+this.getField("TextField2").value+"\\\""); This code changes submit URL to save form into newly created folder. NOTE: YourRootFolder is a part of your site`s library URL. For example: /sites/demo/guides Step 4. Deploy the template. Step 5. Create a new form and fill in the TextField2. Submit the form. Step 6. New folder is created and form is submitted into it 6

Dynamic (XFA) form Step 1. Create template SubmitButton1 button for form submitting; TextField2 value from this field is used to set the name of a target folder. Step 2. Add Execute C# script action before the Save Form action in Form Submit rules. Navigate to Developer Form Submit 7

Step 3. Add Execute script action to the submit button. Choose button and navigate to PDF Form Tools Properties Actions place Execute script action above Submit to SharePoint action. xfa.resolvenode("$data..spsupportdata").value=xfa.resolvenode("$data..spsupportdata").value.replac e(/"rootfolder":(["'])(\\?.)*?\1/g,"\"rootfolder\":\"/yourrootfolder/"+xfa.resolvenode("$data..tex tfield2").value+"\""); This code changes submit URL to save form into newly created folder. NOTE: YourRootFolder is a part of your site`s library URL. For example: /sites/demo/guides Step 4. Deploy the template. Step 5. Create a new form and fill in TextField2. Submit the form. Step 6. New folder is created and form is submitted into it. 8

Execute C# script action s script in the Form Submit rules if (form.isnew()) { var unsafeupdate = currentweb.allowunsafeupdates; currentweb.allowunsafeupdates = true; var foldername = data.resolvenode("textfield2").value; var getexisting = currentweb.getfolder(string.format("{0}/yourlistname/"+data.resolvenode("textfield2").value, currentweb.url));//this line of searches for a folder by its name // If the folder does not exist then a new folder is created and the form will be submitted into it if(!getexisting.exists){ SPList list = currentweb.lists["yourlistname"];//list name should be specified for a proper case SPListItem folder = list.additem(list.rootfolder.serverrelativeurl, SPFileSystemObjectType.Folder, foldername); folder.update(); data.getsystemfield("folderid").value= folder.uniqueid.tostring(); } //if the folder exists then form is submitted into it else data.getsystemfield("folderid").value= getexisting.uniqueid.tostring(); currentweb.allowunsafeupdates = unsafeupdate; } This script checks if the folder with the name that is taken form TextField2 already exists. If the folder exists then the form will be submitted to the existing folder. If the folder does not exist then a new folder is created and the form will be submitted into it. Back to guide static form Back to guide dynamic form 9