Umbraco Forms: Get a value from a hidden field into another field
Hi there,
Is there a way to call the default value of a hidden field in another text field.
Let's say: I have a hidden field with this default value: 125,00
I want to create a text field: "The price is 125,00 Euros."
Then the "125,00" shall come from the hidden field.
Is there a way to get that?
Umbraco Forms: Get a value from a hidden field into another field
Hi there,
Is there a way to call the default value of a hidden field in another text field.
Let's say: I have a hidden field with this default value: 125,00 I want to create a text field: "The price is 125,00 Euros." Then the "125,00" shall come from the hidden field. Is there a way to get that?
Best, Simeon
There are a lot of magic strings you can use to pull in data, but I don’t think you can get to other fields values on the front end.
https://our.umbraco.com/documentation/add-ons/umbracoforms/developer/Magic-Strings/
If that doesn’t work, you could write some custom JavaScript and/or make a custom form field to do the logic you need.
https://our.umbraco.com/documentation/Add-ons/umbracoforms/developer/extending/adding-a-fieldtype
Hi Kevin,
Thanks for your help! I tried all of them before, but this didn't work. I tried:
All of these I tried as a default value in a text field. Would I need to go for JavaScript then?
Best, Simeon
Yeah then you probably have to go the custom field / JavaScript route.
Ok, thank you!
Best, Simeon
is working on a reply...