Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating forms docs #355

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions website/forms/integrations/corvus.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
id: corvus
title: Corvus
---

Corvus Pay enables card payments and payments from account to account in web shops. Corvus Pay is the first FinTech company in Croatia to have received a license from the Croatian National Bank for payment initiation service within the PSD2 framework of the European Union.

### Website

* [Visit website](https://www.corvuspay.com/)

### API Version

* Not defined

### API Documentation

You need to login to your account to access the documentation.

* [Documentation](https://cps.corvuspay.com/documentation/)

### Integration type

* Form builder **not** provided by the service.
* The form is created using our forms fields and connected to Corvus custom fields using form settings.
26 changes: 26 additions & 0 deletions website/forms/integrations/paycek.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
id: paycek
title: Paycek
---

PayCek is an electronic payment service processing cryptocurrency payments, intended for all entities making the payment (merchants, caterers, webshops, fiscal cash registers, polyclinics, hoteliers, etc.), with EUR paid to the account.

### Website

* [Visit website](https://paycek.io/)

### API Version

* Not defined

### API Documentation

You need to login to your account to access the documentation.

* [Documentation](https://paycek.io/processing/profile/integration/)

### Integration type

* Form builder **not** provided by the service.
* The form is created using our forms fields and connected to Paycek custom fields using form settings.

37 changes: 37 additions & 0 deletions website/forms/integrations/talentlyft.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
id: talentlyft
title: Talentlyft
---

Talentlyft is an talent acquisition platform that enables you to attract and nurture the right people who fit your organization so you can hire faster and more cost-effectively.

### Website

* [Visit website](https://www.talentlyft.com/)

### API Version

* V2

### API Documentation

* [Documentation](https://developers.talentlyft.com/)

### Integration type

* Form builder provided by the service.

### Supported fields:
* text
* address
* email
* phone
* file
* textarea
* select
* decimal
* checkbox
* radio
* yesNo
* url
* date
166 changes: 117 additions & 49 deletions website/forms/javascript/events/available-events.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,138 +12,206 @@ This way you can be sure that everything is set and ready to be used. Additional
List of all events can be found [here](https://github.com/infinum/eightshift-forms/blob/develop/src/Blocks/manifest.json).
:::

:::tip
All events are set on the window element.
:::

### esFormsBeforeFormSubmit

Triggered before form is submitted to the API-Rest endpoint.

:::tip
This event is set on the form element.
:::
```js
window.addEventListener('esFormsBeforeFormSubmit', (event) => {
console.log(event.detail);
});
```

### esFormsAfterFormSubmit

Triggered after form is submitted to the API-Rest endpoint but before the response is processed.

:::tip
This event is set on the form element.
:::
```js
window.addEventListener('esFormsAfterFormSubmit', (event) => {
console.log(event.detail);
});
```

### esFormsAfterFormSubmitSuccess

Triggered after form is submitted to the API-Rest endpoint and the response is processed with success.

:::tip
This event is set on the form element.
:::
```js
window.addEventListener('esFormsAfterFormSubmitSuccess', (event) => {
console.log(event.detail);
});
```

### esFormsAfterFormSubmitError

Triggered after form is submitted to the API-Rest endpoint and the response is processed with general error.

:::tip
This event is set on the form element.
:::
```js
window.addEventListener('esFormsAfterFormSubmitError', (event) => {
console.log(event.detail);
});
```

### esFormsAfterFormSubmitErrorValidation

Triggered after form is submitted to the API-Rest endpoint and the response is processed with validation error.

:::tip
This event is set on the form element.
:::
```js
window.addEventListener('esFormsAfterFormSubmitErrorValidation', (event) => {
console.log(event.detail);
});
```

### esFormsAfterFormSubmitEnd

Triggered after form is submitted to the API-Rest endpoint and the response is fully processed and the form is ready for another submit.

:::tip
This event is set on the form element.
:::
```js
window.addEventListener('esFormsAfterFormSubmitEnd', (event) => {
console.log(event.detail);
});
```

### esFormsAfterGtmDataPush

Triggered after GTM dataLAyer is pushed. This happens after form is submitted to the API-Rest endpoint and the response is processed with success.

:::tip
This event is set on the form element.
:::
```js
window.addEventListener('esFormsAfterGtmDataPush', (event) => {
console.log(event.detail);
});
```

### esFormsAfterFormSubmitReset

Triggered after form is submitted to the API-Rest endpoint and the response is processed with success after which the form is reset to its original state.

:::tip
This event is set on the form element.
:::
```js
window.addEventListener('esFormsAfterFormSubmitReset', (event) => {
console.log(event.detail);
});
```

### esFormsAfterFormSubmitSuccessBeforeRedirect

Triggered after form is submitted to the API-Rest endpoint and the response is processed with success right before redirect action triggers.

:::tip
This event is set on the form element.
:::
```js
window.addEventListener('esFormsAfterFormSubmitSuccessBeforeRedirect', (event) => {
console.log(event.detail);
});
```

### esFormsJsFormLoaded

Triggered when all JavaScript on the form is loaded and form is ready to be used.

:::tip
This event is set on the window element.
:::
```js
window.addEventListener('esFormsJsFormLoaded', (event) => {
console.log(event.detail);
});
```

### esFormsManualInitLoaded

Triggered when manual initialization option is used from the forms global settings and the form is ready to be maunually initialized.
Triggered when manual initialization option is used from the forms global settings and the form is ready to be manually initialized.

:::tip
This event is set on the window element.
:::
```js
window.addEventListener('esFormsManualInitLoaded', (event) => {
console.log(event.detail);
});
```

### esFormsAfterCaptchaInit

Triggered after captcha score is calculated and returned via REST-API. Only used if captcha is used on every page load.

:::tip
This event is set on the window element.
:::
```js
window.addEventListener('esFormsAfterCaptchaInit', (event) => {
console.log(event.detail);
});
```

### esFormsGoToNextStep

Triggered after multi-step/multi-flow form is used and the next step is loaded.

:::tip
This event is set on the form element.
:::
```js
window.addEventListener('esFormsGoToNextStep', (event) => {
console.log(event.detail);
});
```

### esFormsGoToPrevStep

Triggered after multi-step/multi-flow form is used and the previous step is loaded.

:::tip
This event is set on the form element.
:::
```js
window.addEventListener('esFormsGoToPrevStep', (event) => {
console.log(event.detail);
});
```

### esFormsBeforeEnrichmentUrlPrefill

*Details coming soon*
Triggered before URL enrichment prefill is used to prefill the form fields.

```js
window.addEventListener('esFormsBeforeEnrichmentUrlPrefill', (event) => {
console.log(event.detail);
});
```

### esFormsAfterEnrichmentUrlPrefill

*Details coming soon*
Triggered after URL enrichment prefill is used to prefill the form fields.

```js
window.addEventListener('esFormsAfterEnrichmentUrlPrefill', (event) => {
console.log(event.detail);
});
```

### esFormsBeforeEnrichmentLocalstoragePrefill

*Details coming soon*
Triggered before LocalStorage enrichment prefill is used to prefill the form fields.

```js
window.addEventListener('esFormsBeforeEnrichmentLocalstoragePrefill', (event) => {
console.log(event.detail);
});
```

### esFormsAfterEnrichmentLocalstoragePrefill

*Details coming soon*
Triggered after LocalStorage enrichment prefill is used to prefill the form fields.

```js
window.addEventListener('esFormsAfterEnrichmentLocalstoragePrefill', (event) => {
console.log(event.detail);
});
```

### esFormsOnFieldChange

*Details coming soon*
Triggered every time any field value is changed.

```js
window.addEventListener('esFormsOnFieldChange', (event) => {
console.log(event.detail);
});
```

### esFormsAfterResultsOutput

*Details coming soon*
Triggered after the results are outputted to the screen.

```js
window.addEventListener('esFormsAfterResultsOutput', (event) => {
console.log(event.detail);
});
```
Loading