Question about hidden fields in calculator

Hi, we implemented this feature and it works like a charm. However I would like to have the option to insert field that are hidden in the form, to do show in the e-mail. Therefore people will have an incentive to leave their e-mailadress so they get more detailled results. So far I didn’t manage to make it work. I’ve tried to insert hidden fields by [field-name] but it just shows [field-name] instead of the value.

2 Likes

Hi there and welcome aboard, @Medilex_Onderwijs :waving_hand:

Could you please specify which values you’d like to pull through the hidden fields?

1 Like

Hi Max, we’ve created a calculator which calculates the salary of teachers. We would like to show the calculation before taxes. However, we also provide the salary after taxes, which is a quite complicated calculation for individuals to make. So to ‘give it away’ immediately is not in our advantage. We would like ‘After tax result’ to be not visible in the calculator but visible in the e-mail by typing the hidden fieldname, [after-tax] for example.

2 Likes

Got it!

You just need to disable the Show in Results option for this calculation:


This way, the calculation won’t be displayed for users, but you’ll see the result in the form submission.

Please try it out and let me know if it worked :slightly_smiling_face:

1 Like

I understand, but I don’t want to let them see it in the calculator, but i do want to let them see it it their notificationmail. If I don’t show it in the calculator, it doesn’t show in their mail. (it does in the mail we get, but that’s not the issue)

2 Likes

Apologies for misunderstanding!

I see that you have 6 Calculator widget at the moment. Could you please specify the name of the Calculator widget and the exact name of the calculation you’d like to hide? I’ll be happy to check with the devs if there is a custom solution :slightly_smiling_face:

1 Like

No worries.

  • I copied a developper version "Onderwijssalaris developper).
  • I hid the field “Netto per maand” in the results
  • In the result section - edit form - email notifications - notify respondents - messsage: I added in the first line of the message: Field: [netto-per-maand]

It would be great if it would stay hidden in the direct online results and would be visible (the value) in the respondents e-mail.

2 Likes

Thank you so much!

Here is a solution from the devs:

We've enabled Show in Results option for this calculation


Then we've added a unique class for this calculation to the Caption field through the Code Editor mode

Here is the class we’ve added:

<div class="hide-result-mark"></div>


Finally, we've used a special code to hide the calculation in the widget

This code was added to the Custom CSS field on the Settings tab of your widget’s settings:

[class*="result-primary__PrimaryContainer-sc"]:has(.hide-result-mark) {
  display: none;
}


This way, the calculation won’t be displayed in the widget, but its result will be displayed in the submissions sent to your clients.

We’ve saved these changes in your widget, but haven’t published them yet. Please test your widget through the editor first and if everything is fine, feel free to publish changes :slightly_smiling_face:

1 Like

Hi Max,

This is exactly what I mean! Is it possible to code it myself as I would like it to work for some other fields as well. Thanks for the quick response and fix from your developpers! GREAT!

3 Likes

Sure! You just need to follow the same steps, but change the unique classes in the Caption field, for example, <div class="hide-result-mark-1"></div> and then use this new class in the CSS code :slightly_smiling_face:

image

1 Like

Great! Thanks for all the help. Really different from a lot of other forums where you have to wait 3 weeks for reply, let alone a solution.

3 Likes

Wow, thank you so much for such a kind feedback!

If anything else comes up in the future, we’ll be delighted to help :wink:

1 Like

This is amazing. Would be such a good feature to have natively. E.G. A button to choose whether or not to show to them on the front end. Be an amazing lead magnet.

2 Likes

Hi there, @user11118 and welcome to the Community :waving_hand:

Thanks a lot for sharing your thoughts with us!

Would you like to have an option to completely hide a result of a specific calculation from the widget? Or would you like to hide until the form is submitted?

1 Like

Anything which we can be hidden until either

A: They submit their email and then see it on the page
B: They submit their email and get the data via email
(or both)

It could work for certain fields or all of them. Anything which witholds information until we have their email.

Basically what Medilex_Onderwijs asked for but without having to drop in code.

2 Likes

Got it, thanks!

Glad to say that we already have a request to hide the results until the form is submitted. Please upvote this idea :slightly_smiling_face: - Hide results until form completion.

The good news that it’s possible to achieve with the custom code and I’ve shared the solution in this comment.

Also, there is a slightly variated code version that make the results blurry until the form is submitted. Feel free to check this workaround here :wink: - Make the price blurry until they opt-in to collect leads

1 Like