umbraco/Umbraco.Forms.Issues

Magic Strings leaves a "}" in the result of the ReplyTo Email setting

Closed this issue · 3 comments

I am using a magic string to fill the reply to email address.

I have a textfield called mejladress, and in the ReplyTo im using {{mejladress}}, when i receive the email, outlook shows me in the To field

This image shows the values i send in to the api (not using standard umbraco forms, im rendering my own form via the api)

image

Reproduction

Create a form with a field to accept your email address, and in the replyto field use the magic string {{yourfieldname}}

If you're filing a bug, please describe how to reproduce it. Include as much
relevant information as possible, such as:

Bug summary

I have no condition or validation or field type on the form field

image

Specifics

Umbraco 12.3.7
image

Forms 12.2.3
image

AND Forms 12.2.2
image

Expected result

A mail with the result of the input fields value as the reply to email address

Actual result

See images above,

HACK FIX

removing one of the } when using the magic string works, but this is not the correct way to use the magic strings.
Doing this works
image

It looks like we document using single curly braces for magic string that replace field types. Is there a reason why you've found or read that the correct way is to use double braces please? Might be something historical I'm not aware of.

Hi Andy, what a miss.... I guess too much angular has given me poor sight :) This is more than likely absolutely not a problem at all, i'll update and re test.

This was absolutely not an bug at all. using {{}} double squigglies must have just come out due to angular muscle memory.

NO this has nothing to do with angular, but writing those squigglies so many times has been the culprit here.