Price request through a WebForms form
What it does
Replace a hidden price or Add to Cart with a button that opens one of your WebForms forms in a popup. Use it when the HidePrice Pro price request form isn't enough: a trade account application, a detailed project brief or any form you built in WebForms. The product the customer was looking at is saved with the submission.
Uses: Replace the price, Replace the Add to Cart button, and a form built in WebForms.
Before you start
- WebForms is installed, with its WebForms Hide Price add-on. The add-on adds WebForms: Button With Popup to the replacements of HidePrice Pro. On a Hyvä store, the add-on's Hyvä companion module is installed too. See WebForms.
- The form exists in WebForms.
- You have chosen which products hide their price and who sees it. See Choose which products and Choose who sees prices.
Steps
Set these values in the HidePrice settings, then click Save Config:
- In Replace Price With, select WebForms: Button With Popup (how). To replace Add to Cart instead, or as well, select it in Replace Add To Cart With (how).
- Under it, set up the button as described in Set up the button.
- In Show In, keep the areas where the button should show (how, for Add to Cart how).
Set up the button
When WebForms: Button With Popup is selected, four fields appear under it. Price Replacement and Add To Cart Replacement each have their own set, so the two buttons can open different forms.
| Field | What it sets | Default |
|---|---|---|
| Form | The WebForms form the popup opens. The list shows your forms. A form your admin role may not use shows locked. | None, select a form |
| Button Text | The text on the button. | Ask For Price in Price Replacement, Buy in Add To Cart Replacement |
| Custom Button CSS Classes | Extra CSS classes for the button, so it matches your theme's buttons. Ask your developer for the classes. | Empty |
| Custom Popup CSS Classes | Extra CSS classes for the popup window. | Empty |
If you clear Button Text, the button reads Request Price.
All settings of these groups: Price Replacement · Add To Cart Replacement.
What you should see
Open a covered product as a guest. The button shows where the price was. A click opens the form in a popup, with the product name as its heading.

What reaches WebForms
When the customer sends the form, the submission is saved in WebForms, not in Sales → HidePrice → Price Requests. The product goes with it:
- The product's name, SKU and ID are saved with the submission.
- The submission shows the product as Requested Product, with a link to the product page, in the admin, in the customer's account and in the emails.
- WebForms email notifications can use the product's name, SKU, ID and page link.
- The submissions list of this form gets product columns: ID, name, SKU and a thumbnail.
The product is saved only for the form selected in Form. The same form placed elsewhere on the store sends no product.
Handling the submission, the emails and replies is described in the WebForms documentation.
Limits
- A product with Always Show Price Request Form set to Yes shows the HidePrice Pro request button for its price, not the WebForms button. See Per-product rules.
- The form's own settings, such as who may send it and its confirmation, come from WebForms.
- Every field here can differ per store view. See Store views and customer groups.
Troubleshooting
- WebForms: Button With Popup is not in the list. The WebForms Hide Price add-on isn't installed or enabled.
- The submission has no Requested Product. The form was sent from another place on the store, or a different form is selected in Form. See What reaches WebForms.
- The button shows in the wrong place or twice. See The replacement shows in the wrong place or twice.
What's next
- Sign in to see prices: combine the WebForms button with a sign-in button for the price.
- Replace the Add to Cart button: the other replacements for Add to Cart.
- WebForms: build the form the popup opens.