Use FEU property at FormBuilder form
Posted: Mon Sep 07, 2015 9:12 am
Hello,
I'm using CMSMS 1.11.10 and I'm trying to make a simple ordering system using de FrontEndUsers module and the FormBuilder.
Every user has it's own user credentials.
What I would like to do;
Use a hidden field and get the user property which contains first and lastname into that.
When I take the hidden field and go to advanced settings it's possible to put a smartytag inside. Thing is, it doesn't sends the info along.
I use the correct tag because I can display the users first and lastname with the same smartytag on my page.
Does anyone know how I can make it work?
Edit:
I tried this: {FormBuilder form='my_form' value_fld44='{ccUser::property('klanten')}'} but then I get all sorts of errors
and when I delete these extra { and } it still says:
When I replace the {ccUser}-tag with somethingelse like flat-text it works just fine.
I'm using CMSMS 1.11.10 and I'm trying to make a simple ordering system using de FrontEndUsers module and the FormBuilder.
Every user has it's own user credentials.
What I would like to do;
Use a hidden field and get the user property which contains first and lastname into that.
When I take the hidden field and go to advanced settings it's possible to put a smartytag inside. Thing is, it doesn't sends the info along.
I use the correct tag because I can display the users first and lastname with the same smartytag on my page.
Does anyone know how I can make it work?
Edit:
I tried this: {FormBuilder form='my_form' value_fld44='{ccUser::property('klanten')}'} but then I get all sorts of errors
Code: Select all
Syntax error in template "content:content_en" on line 3 "
{FormBuilder form='bestel' value_fld44='{ccUser::property('klanten')}'}
" - Unexpected "klanten", expected one of: "}"
Code: Select all
Syntax error in template "content:content_en" on line 3 "
{FormBuilder form='bestel' value_fld44='ccUser::property('klanten')'}
" - Unexpected "klanten", expected one of: "}"