Skip to content
On this page

erFormPreview

Everright-formEditor has three internal components that are suitable for different business scenarios. erFormPreview is a component used for previewing and inputting form data.

  • Display the corresponding form preview page based on whether the current page is on PC or mobile.
  • Display validation messages in the corresponding language environment based on the current language setting (e.g. Chinese or English).

API

Attributes

NameTypeDescriptionAccepted ValuesDefault
langStringi18nzh-cn|enzh-cn
layoutTypeNumberDefining whether fields and layouts are separate1|21
fileUploadURIStringImage and file upload URL--
isShowCompleteButtonBooleanWhether to display the option to configure the submit button in the form settings.true|falsetrue

Event

NameDescription
listenerAll events within the editor are sent through this event, differentiated by type

type:

  • submit

    isShowCompleteButton=trueUser data submission event

Exposes

NameDescriptionParameters
switchPlatformSet pc/mobilepc|mobile
getDataGet data, with internal validation for unique IDs entered by user.-
setDataSetting data. If the value is set, the value data will be echoed to each field in the data(data, value?) => {}