Forums

Fieldnames visible in emailtemplate

keske 29 Nov, 2011
Hello,

I'm sorry if the solution is somewhere on this forum, but I can't find it.

When the form is sent, I see the fieldnames of the radiobuttons and the optionfields of the fields which where not fild in. I remember I used a solution in previous version of Chronoforms with for example this code: (and that worked for the older versions):

<?php
$my_input_name = JRequest::getString('provider', '', 'post');
$form->data['provider'] = $provider;
$my_input_name = JRequest::getString('huisstijl', '', 'post');
$form->data['huisstijl'] = $huisstijl;
?>


But then the form will not send the data which was fild in.

How can I get rid of the fieldnames?


Thanks a lot.

Kees
GreyHead 29 Nov, 2011
Hi Kees,

Your code will probably work if you correct the bugs. You use $my_input_name in the first line then $provider in the second.

You shouldn't need this though. Max added 'Ghost' values in the CFV4 RC2.0 to make sure that checkbox groups always and a value.

Bob
keske 29 Nov, 2011
Hello Bob,

Thanks a lot for your quick reply.

When I don't use the php-code I see the fieldnames. I'm not familiar with Max's "Gost" values. Do I have to do something to enable this?

Thanks again.
GreyHead 29 Nov, 2011
Hi Kees,

I think the 'Ghost' values are enabled by default. Check the 'Ghost' tab on the element to see.

Bob
keske 29 Nov, 2011
Hi Bob,

Thanks, Is it also possible to use the Gost-option when I use a custom html-code? Because that's what I'm using. That's also the reason why I dind't see this option.

Thanks again.

Kees
GreyHead 29 Nov, 2011
Hi Kees,

No but I guess you could create your own. Or you can add a Custom Code action to do the same thing after the form is submitted - the code you posted earlier will work once you have fixed the bugs.

Bob
keske 29 Nov, 2011
Hi Bob,

Thanks very much.

I'm not so good with PHP, so I'm going to use the code posted earlier. It works so I'm happy.

Thanks again for your kind and fast replies.

Kees
This topic is locked and no more replies can be posted.