Smartfields usage within Body of an Email

Hello there, i’m currently creating a website with Sitely 5.6 with smart fields (calculator) which counts multiple options (radio buttons and options and mark fields). The calculator reacts to user inputs to show a price for the current options checked. So far this works as expected.

Now i would like to create a button for the user to send an email with those informations already filled in the body of the email. Am i allowed to use the smart field variables and checked buttons/options within the email body?

Regards

Hi @cr4sh, I’m afraid that’s not possible at this time. We are getting closer to being able to submit the result of a calculation in a form, but there is no interaction of smart fields with plain email text.

Thank you for your fast response. I‘ll try to achieve my goal using javascript. Therefore i will need to buy the developer license to i can create my own button.

This should work or am i wrong?

Regards

Hi and welcome @cr4sh !

That’s a feature I’ve been waiting for as well :slight_smile:

To achieve this, you can use JavaScript to copy the value of the calculator result into a hidden text input field. This hidden field can then be submitted along with the form. This doesn’t require the developer tools.

1 Like

Hi Allan, do you habe an exapme code with you would share with me?

Regards

Hello @cr4sh

Here is an example :

Calcultator in Text Field.sparkle (168 KB)