AmpForm

AmpForm class

Inherits: Aspose::Email::Amp::AmpComponent

The amp-form extension allows you to create forms to submit input fields in an AMP document.

Constructors

NameDescription
AmpForm

Methods

NameDescription
get_ActionSpecifies a server endpoint to handle the form input. The value must be an https URL (absolute or relative) and must not be a link to a CDN
get_ActionXhrSpecifies a server endpoint to handle the form input and submit the form via XMLHttpRequest (XHR).
get_FieldsetList of fields.
get_MethodThe method attribute tells the server about the request method.
get_RequiredScriptRequired script that muct be added to head section.
get_TargetIndicates where to display the form response after submitting the form.The value must be _blank or _top.
set_ActionSpecifies a server endpoint to handle the form input. The value must be an https URL (absolute or relative) and must not be a link to a CDN
set_ActionXhrSpecifies a server endpoint to handle the form input and submit the form via XMLHttpRequest (XHR).
set_MethodThe method attribute tells the server about the request method.
set_TargetIndicates where to display the form response after submitting the form.The value must be _blank or _top.
ToAmpHtmlRepresents amp html version of component.
ToHtmlRepresents html version of component.