SOAP API method WebForm_copy

Back to API references

Description
Copy a webform, to a new webform with the name given as parameters

Parameters
Parameter 'id' : int
Unique identifier (id) of the object WebForm. The method only applies to the webform with this id.
Parameter 'new_name' : string
Name for the copied webform
Parameter 'database' : Structure of type 'database'
The database that should be linked
Parameter 'link' : boolean
The database that should be linked
Parameter 'login' : Structure of type 'login'
Optional login data

Return values
Return value 'webform' : Structure of type 'webform'

Structure 'database'
This structure database was mentioned above. This structure has the following properties:
Property 'id' : int
The ID of the database.
Property 'name' : string
The name of the database.
Property 'description' : string
The description of the database.
Property 'archived' : boolean
The database is archived.
Property 'created' : timestamp
The date and time when the account was created.
Property 'unsubscribebehavior' : string
Get the unsubscribe behavior of the database. Possible values are 'nothing', 'remove' or 'update'.
Property 'countprofiles' : int
The number of profiles.
Property 'lastbuilt' : timestamp
When was the profile rebuilt for the last time?

Structure 'login'
This structure login was mentioned above. This structure has the following properties:
Property 'username' : string
The username of the login attempt
Property 'account' : string
The account name of the login attempt
Property 'password' : string
The password for the login attempt

Structure 'webform'
This structure webform was mentioned above. This structure has the following properties:
Property 'id' : int
The ID of the document.
Property 'name' : string
Get the name of the webform.
Property 'login' : string
Is this webform used for a login check?
Property 'archived' : boolean
Get if the webform is archived.
Property 'modified' : string
The last modification time of the webform.
Property 'created' : string
The creation time of the webform.
Property 'buttontext' : string
The text that appears on the button in the default xslt.
Property 'nexturl' : string
The url/page where the webform returns after handling the process.
Property 'timezone' : string
Get the timezone of the webform
Property 'htmlEscaping' : string
Check if the webform is escaping HTML code