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):
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
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
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
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
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.
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.
Hi Kees,
I think the 'Ghost' values are enabled by default. Check the 'Ghost' tab on the element to see.
Bob
I think the 'Ghost' values are enabled by default. Check the 'Ghost' tab on the element to see.
Bob
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
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
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
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
This topic is locked and no more replies can be posted.
