Show / Hide Table of Contents

Class Form

A Google Forms document. A form is created in Drive, and deleting a form or changing its access protections is done via the Drive API.

Inheritance
object
Form
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Forms.v1.Data
Assembly: Google.Apis.Forms.v1.dll
Syntax
public class Form : IDirectResponseSchema

Properties

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

FormId

Output only. The form ID.

Declaration
[JsonProperty("formId")]
public virtual string FormId { get; set; }
Property Value
Type Description
string

Info

Required. The title and description of the form.

Declaration
[JsonProperty("info")]
public virtual Info Info { get; set; }
Property Value
Type Description
Info

Items

Required. A list of the form's items, which can include section headers, questions, embedded media, etc.

Declaration
[JsonProperty("items")]
public virtual IList<Item> Items { get; set; }
Property Value
Type Description
IList<Item>

LinkedSheetId

Output only. The ID of the linked Google Sheet which is accumulating responses from this Form (if such a Sheet exists).

Declaration
[JsonProperty("linkedSheetId")]
public virtual string LinkedSheetId { get; set; }
Property Value
Type Description
string

PublishSettings

Output only. The publishing settings for a form. This field isn't set for legacy forms because they don't have the publish_settings field. All newly created forms support publish settings. Forms with publish_settings value set can call SetPublishSettings API to publish or unpublish the form.

Declaration
[JsonProperty("publishSettings")]
public virtual PublishSettings PublishSettings { get; set; }
Property Value
Type Description
PublishSettings

ResponderUri

Output only. The form URI to share with responders. This opens a page that allows the user to submit responses but not edit the questions. For forms that have publish_settings value set, this is the published form URI.

Declaration
[JsonProperty("responderUri")]
public virtual string ResponderUri { get; set; }
Property Value
Type Description
string

RevisionId

Output only. The revision ID of the form. Used in the WriteControl in update requests to identify the revision on which the changes are based. The format of the revision ID may change over time, so it should be treated opaquely. A returned revision ID is only guaranteed to be valid for 24 hours after it has been returned and cannot be shared across users. If the revision ID is unchanged between calls, then the form content has not changed. Conversely, a changed ID (for the same form and user) usually means the form content has been updated; however, a changed ID can also be due to internal factors such as ID format changes. Form content excludes form metadata, including: * sharing settings (who has access to the form) * publish_settings (if the form supports publishing and if it is published)

Declaration
[JsonProperty("revisionId")]
public virtual string RevisionId { get; set; }
Property Value
Type Description
string

Settings

The form's settings. This must be updated with UpdateSettingsRequest; it is ignored during CreateForm and UpdateFormInfoRequest.

Declaration
[JsonProperty("settings")]
public virtual FormSettings Settings { get; set; }
Property Value
Type Description
FormSettings

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX