Hello
I am here just to notify probably a bug in the double dropdown action
the bug is this: the name and id of the source dropdown cannot be written using syntax with brackets ---> "xxxx[yyyy]" while it is ok for the target dropdown
I used the workaround of a 3rd hidden form field
I am here just to notify probably a bug in the double dropdown action
the bug is this: the name and id of the source dropdown cannot be written using syntax with brackets ---> "xxxx[yyyy]" while it is ok for the target dropdown
I used the workaround of a 3rd hidden form field
Hi alforau,
I'm a bit surprised they work for the target drop-down. Square brackets are illegal in HTML IDs and I think that they break the JavaScript as a result :-(
Safer to use names and ids without the brackets. You can always use a Custom Code action after the form is submitted to change the name back to an array name if you need to.
Bob
I'm a bit surprised they work for the target drop-down. Square brackets are illegal in HTML IDs and I think that they break the JavaScript as a result :-(
Safer to use names and ids without the brackets. You can always use a Custom Code action after the form is submitted to change the name back to an array name if you need to.
Bob
hi
I followed the FAQ on filling a form from multiple dbtables
and I saw this strange syntax to use in form fields
Now it works using hidden fields and that's make me happy.
I used hidden fields because it seems that the custom
$form->data['variable'] or $form variables are not always accessible (i.e. when using events)
I had to make a triple drop-down chaining using the cf-ajax feature. and more than one GET parameter for the events.
BTW I have another question on the fly:
I have just inserted a form field drop-down box on a
form displaying html just using custom code and "DB multi record loaders"
(no form fields did exist before).
The problem is the new drop-down box is shown as last (on the bottom of the form) instead of the top side of form. I tried to move up (as possible) the "Show-HTML box" but no success.
Thanks you much for your support.
I followed the FAQ on filling a form from multiple dbtables
and I saw this strange syntax to use in form fields
Now it works using hidden fields and that's make me happy.
I used hidden fields because it seems that the custom
$form->data['variable'] or $form variables are not always accessible (i.e. when using events)
I had to make a triple drop-down chaining using the cf-ajax feature. and more than one GET parameter for the events.
BTW I have another question on the fly:
I have just inserted a form field drop-down box on a
form displaying html just using custom code and "DB multi record loaders"
(no form fields did exist before).
The problem is the new drop-down box is shown as last (on the bottom of the form) instead of the top side of form. I tried to move up (as possible) the "Show-HTML box" but no success.
Thanks you much for your support.
Hi alforau,
If you use a Custom Element in the Preview tab (from the Advanced elements group) then you should be able to control the position in the form.
Bob
If you use a Custom Element in the Preview tab (from the Advanced elements group) then you should be able to control the position in the form.
Bob
Hi
I solved by copying and paste the wizard dropdown generated code
in the header of the custom php code box
What I had had to put in the Custom Element? The Dropdown code or the current php code box?
I have tried (cheating) the 2nd, without success.
probably because the code had fallen inside an html element
I'll try again in future.
I solved by copying and paste the wizard dropdown generated code
in the header of the custom php code box
What I had had to put in the Custom Element? The Dropdown code or the current php code box?
I have tried (cheating) the 2nd, without success.
probably because the code had fallen inside an html element
I'll try again in future.
Hi alforau,
I'm not very clear what code you have put where . . . but in general I use the Custom Code element in the Preview box to handle the code that I want to be displayed in the form and I use Custom Code actions in the Events box to do any calculations or processing of the data.
The $form->data array is available from most Elements and Actions either by using $form->data['input_name'] in PHP; {input_name} in HTML, like the Thank YOu page; or just plain input_name in the options boxes like the Dynamic Email action boxes.
Bob
I'm not very clear what code you have put where . . . but in general I use the Custom Code element in the Preview box to handle the code that I want to be displayed in the form and I use Custom Code actions in the Events box to do any calculations or processing of the data.
The $form->data array is available from most Elements and Actions either by using $form->data['input_name'] in PHP; {input_name} in HTML, like the Thank YOu page; or just plain input_name in the options boxes like the Dynamic Email action boxes.
Bob
This topic is locked and no more replies can be posted.