validateInput( )


Deprecated: Validates an input form field value against the registration form as defined in the site Dashboard.

Deprecation note: について validateInput() function of the RsvpForm object is being deprecated. Use the validateInput() function of the フォーム object instead.

について validateInput() function returns a Promise that resolves to {valid: true} if the value in the specified field is valid or rejects if it is not valid.

You can validate your form's values explicitly using the validateInput() function. Value validation is also implicitly performed when you call the submit() function or the validate() 関数である。

You may want to call the validateInput() function in an input element's onCustomValidation() event handler to validate an input while the form is being filled out.

Note: To work with the Wix Events API, you need to publish your site.

メソッド宣言
コピー
メソッド・パラメータ
inputNamestringRequired

Name of the input field to validate.


formValuesArray<FormValue>Required

Field names and values for an RSVP form.

リターン
Return Type:Promise<ValidationResult>
役に立ちましたか?
はい
いいえ