I'm using CMSMS 1.11.4 and Formbuilder 0.7.3; PHP version is 5.3.8 adn this is running on Linux/Apache.
I have a formbuilder form on a page, and when it is submitted I'd like to use a UDT to output something which depends on the value of a form field: simplifying a bit, I want to take an input number and turn it into a cost at £10 each - so if the field 'number' is '2', then I want to output '£20'.
I've set the submission template to include a UDT. At the moment, being very basic about it, all I'm trying to do is output any form value via a UDT. There is a form field called 'name', so to test that I can get that value in a UDT, so my UDT says:
Code: Select all
echo "Here it comes: ";
echo $name;
echo "That was it";
Here is comes: That was it.
I've tried things like $(params['name']) and one or two other possibilities, but the results don't change.What do I need to put into the UDT to get the value of the form field, so that I can manipulate it?
I'm probably missing something obvious here...