Are there webhooks available to create a request based on a more user friendly (multi-step) form? I have quite some information that I’d like to add to a request and show as attributes. These can be both attributes for a user, but also specifically linked to a single request (I’ve bought the request module).
To add on this.. it would also be nice to use a more user-friendly form (e.g. multi-step etc) to create a listing. So are there any webhooks available to get the data from the form to be created in a listing?
Hi,
We’ll try to improve the forms’ UX, but this feature isn’t available at the moment, it requires customization, not via webhooks.
You can customize form fields using the hivepress/v1/forms/listing_update or request_update hooks, for example, to add a CSS class to a field or adjust other parameters. This gives you more control than listing attributes do.
As for multi-step forms, the general guidance is that it has to be done with custom JS. You’d need to group the fields and display only one group at a time, with some kind of control to show the next group. Both forms (request and listing) have unique CSS classes, so you can target them with JavaScript.
Hope this helps
Hi @kseniia , thanks for your respons. I’m not sure whether I get your solution right.
Currently I have a form in place (created with FluentForms) that asks for quite some data. A visitor can create a ‘dog puppy request’ for a specific dogbreed. The visitor gets directed to a form that contains both personal data + account data and data about the requested dog breed (e.g. color, gender etc). On entry of the form, I get the opportunity to review it and approve it. After which the visitor gets an account. I would like to complete the visitor profile attributes with the data entered into the form AND complete the attributes of a request when the form is approved.
Is there a way to store the data from the form (using a webhook or API) as attributes of the user and/or as attributes of a request? Basically I want to create a request with use of a FluentForm.
Hi,
Unfortunately, there’s no integration with this form plugin. HivePress has its own forms framework, so if you want to use a third-party form plugin, a custom integration would be required.
If your form plugin allows creating entries as a post type, then the post type for Requests is hp_request. Attribute fields are saved as hp_attribute_fieldname_here, and selectable attributes use a custom taxonomy hp_request_attribute_fieldname_here. It might work, but you would need to map all fields accordingly.
We generally recommend using the built-in features whenever possible because they are consistent, stable, and typically lead to fewer issues. Also, integrating a third-party form plugin could require more effort than simply customizing the built-in Request form to split fields into sections.
Hope this helps.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.