I have a form in V4 area where I wish to to see a ceratain checkbox group when an item in a drop down has been selected
EG
Select : A
Checkbox group 1 appears
Select : B
Checkbox group 2 apears
Look forward hearing from you soon
Rgds Kees
There was no built-in event handling in CFv4 so you would need to do this with custom JavaScript.
There is built-in event handling in CFv5 so you could consider installing that along-side CFv4 for this form.
Bob
Add a Drop-down and the CheckBox groups then look at the settings in the Drop-down Events tab.
Bob
Can't get it working, as I don't understand teh mechanism I suppose
Also can't find an example in the FAQ's and demo forms
Pls could you push me in the right direction?
There isn't much to say - Please post a link to the form so I can take a quick look.
Bob
Under the "Dropdown" settings > "Events":
on / = / 1 / show parent / checkbox group 1
on / = / 1 / hide parent / checkbox group 2
on / = / 0 / show parent / checkbox group 2
on / = / 0 / hide parent / checkbox group 1
Best regards,
Max
Getting in the right direction, the Checkbox groups should be on "parent hidden" CORRECT?
But, when sending an email it only shows ONE selected item
This is what the email template says:
<table>
<tr><td>Selecteer</td><td>{Test}</td></tr>
<tr><td>Groep 1</td><td>{Groep1}</td></tr>
<tr><td>Groep 2</td><td>{Groep2}</td></tr>
<tr><td>Email</td><td>{email}</td></tr>
</table>
Following scenario:
If I select option 1 and 3 in teh Checkbox group, I want to see in the email:
What I selected in the dropdown
and teh selected option in the checkbox group eg Groep1 (and not showing <tr><td>Groep 2</td><td>{Groep2}</td></tr>)
Pls find the demo in a testarea DEMO
Yes, if there is a checkbox group which should be hidden by default then the load state should be set accordingly.
You can adjust the email using PHP code, but the fields events will not be reflected on the email template.
If you receive only one selected item in the email then you may need a "Handle arrays" action before the email action.
Best regards,
Max
If you receive only one selected item in the email then you may need a "Handle arrays" action before the email action.
Max, Does not work as well 😟
Have you given the Checkbox group an array name ending in [] ?
Bob
Ahum...I skipped the brackets when I renamed..😶
So this works now
I also have put the "Select All" option ( Thanks to the FAQ's !!)
But...When I click on the RESET button, I'm getting all the validation messages.
I just want the form to be reset to the original state
Pls. look at the FORM
Did some other stuff in V5, but the RESET buttons don't work correctly.
But...When I click on the RESET button, I'm getting all the validation messages.
I just want the form to be reset to the original state
Pls. look at the FORM
The RESET works fine on fields which are not set on requiered
In V4 no problems with the RESET buttons..
Pls advise
The problem is the display of the validation messages when the reset button is clicked ?
Best regards,
Max
This is how v5 works at the moment, there may be a new update to fix this issue.
Since you have a working v4 form then you may also keep on using it for now, and wait for v6 instead which may have this issue fixed and the fields events feature.
Best regards,
Max
A bit disappointing answer 😑
V4 Dropdowns don't have the elegant element settings....
Ans I cannot restore v5bak files in v4
No workaround possible?
Wil it be fixed in V6
When to expect V6 with the fix?
Pls advise
Best regards
Kees
From your first post I understood that the problem you have with v4 is only the fields events, you want to show/hide fields on dropdown changes, if this is the case then it can be done with a small bit of js code, in case you can't keep on using v5 with the reset button issue.
v6 has all the v5 features with modern form styles, its currently being developed, maybe the official release can be ready withing one month or so.
Best regards,
Max
Correct, but based on Bob's suggestion I started to set this up in V5.
V6..will it fix showing the validation messages on RESET.
(now it looks the reset button has teh function: reset AND submit...)
Pls advise
Best regards
Kees
v5 is fine but since the reset button changes the fields values, the validation is triggered.
i will try to have a fix for the reset button issue soon.
Best regards,
Max
It's logical isn't it...resetbutton are to reset values and nothing else
For me easy to say😃
I will wait untill further notice,
Thanks in advance,
Best regards
Kees
If you restore a v5 form into v6 then the "most" of the designer section should be imported, did you try that ?
Additionally it solves the reset button issue you had with v5.
Best regards,
Max
Restored the V5 form into V6
1 It opens if I click on the Backend (OPEN)
2 Then the forms shows in the website
3 But nothing of the design works...checkbox groups opens when etc etc
4 When creating a menuitem I get an error "the form doen not excist"
Next question?
Why changing the whole V5 ideas? Why changing this "winning team" ?
After you restore the v5 form into v6, you should open the form in the admin and save it again, at least once.
There is a bug with the menu item creation of v6, this should be fixed by the next official update.
v6 gives users more options and has more features, but if you believe v5 is better then you can keep on using it!🙂
Best regards,
Max
Nope, it does not, especially the EVENT setting in Checkboxgroups (as far as I can see)
I'd rather prefer to update the V5 version, wherby the RESET button RESETS, without the ERROR message (as you wrote earlier)
Pls bear in mind we all suffered with teh transfer V4>>V5, so for me I'm not in favor to start using V6 (added value??)
Rgds
Kees
What is the problem with the event setting in the Checkboxes group ?
Best regards,
Max
Pls follow this topic from above
Best regards
Kees
I have just released a new update for v6 and it has a demo form for fields events (please click "New" in forms manager), it does just what you want here, please test it and let me know.
Best regards,
Max
But...Does it really mean I have to redesign my V5 forms if using V6?
Like we all had to do with the change from V4>>V5
1 Vaidation does not work correctly (pls try to send without filling out etc)
2 Cannot create menu items
I did not test the reset option
Sorry, but not happy so far...
Kind regards
Kees
I didn't say that you have to move from v5 to v6, I only suggested that you try the new version if you want a quick solution to the reset button issue.
If you are not ready to move now then you can keep on using v5, the dropdown/checkboxes feature is available in v5 too (but please test that it works as you want it), and please give me sometime to fix the reset button issue.
Best regards,
Max
As a start: The reset option works in V6
However:
1. The validation mechanism gives an error, pls find a picture
2. Not possible to create a menu-item still (it says: Component 'com_chronoforms6' does not excist
[attachment=26899_20170407081622_chrono-jpg.jpg][/attachment]
The picture here is not for an error, its the debugger output.
Do you have the form online so I can test it ?
Could you please upload a screenshot for the menu item error ? it works fine here, other users reported its working fine too.
Best regards,
Max
Indeed it was the debugger
But...V6 requires a total new set up and understanding to build, change etc forms
I hope you can make te reset button in V5 work properly, I will stay away from V6 ( to be honest..)
No problems, I will try to get the v5 reset button to behave as you expect.
Best regards,
Max
The email content, does it generate the content, is there an std editor ? eg JCE ??
How to make this dynamic etc
This alle has to be sorted out again, I'm sure it works all fine, but a simple conversion V5>V6 is not possible
So, I hope V5 will be updated
And if I can find some time to play around with V6 you will hear from me again
Cheers
Kees
You can use the "Custom code" or the "System message" actions in v6 to display a thank you message.
The email template can be auto generated (default) or manually set.
No editors support yet.
Best regards,
Max
I will play around with V6, I would appreciate to include an editor (TinyMCE/JCE)
I quess some questions will be launched on V6, may to add e separate section in this forum 😃
A few more tiny questions
To set manually: Can we use the same brackets, e.g. {name}
How to get the IP in the email
In the "fields", we see icons: edit, drag, delete, and anorther one, this purple cross. What's his function?
Yes, I will try to add TinyMCE support soon.
Topics here can be tagged, v6 topics should have the Chronoforms v6 tag.
Yes, but the brackets are a little different now, the ones in v5 can now be written as {data:field_name}, there are other types of tags too.
The IP can be included in the email (or anywhere) like this: {ip:}
The icons do what you have just described, the last new icon allows you to move the field/action between different places, for example, you may now move the email action to a different event, without having to delete it then recreate it again.
Best regards,
Max
