com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class AmpForm



  • public class AmpForm
    extends AmpComponent

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

    • Constructor Detail

      • AmpForm

        public AmpForm()
    • Method Detail

      • getFieldset

        public final List<FormField> getFieldset()

        List of fields.

      • getMethod

        public final int getMethod()

        The method attribute tells the server about the request method.

      • setMethod

        public final void setMethod(int value)

        The method attribute tells the server about the request method.

      • getTarget

        public final int getTarget()

        Indicates where to display the form response after submitting the form.The value must be _blank or _top.

      • setTarget

        public final void setTarget(int value)

        Indicates where to display the form response after submitting the form.The value must be _blank or _top.

      • getAction

        public final String getAction()

        Specifies 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

      • setAction

        public final void setAction(String value)

        Specifies 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

      • getActionXhr

        public final String getActionXhr()

        Specifies a server endpoint to handle the form input and submit the form via XMLHttpRequest (XHR).

      • setActionXhr

        public final void setActionXhr(String value)

        Specifies a server endpoint to handle the form input and submit the form via XMLHttpRequest (XHR).

      • toAmpHtml

        public String toAmpHtml()

        Represents amp html version of component.

        Specified by:
        toAmpHtml in class AmpComponent
        Returns:
      • toHtml

        public String toHtml()

        Represents html version of component.

        Specified by:
        toHtml in class AmpComponent
        Returns: