In CF V6 there are Event Switcher and Switcher actions and a Switcher area in views. There does not seem to be V7 equivalents. How does one go about reproducing these in V7??
Nick
Use the 'Events' and 'Hidden' options of the Interface section of controls.
Use 'Show' as the Event and enter {var:someValue} or the built in 'form_start_page' from the event dropdown as the 'If' value and 'Equals' as the function
One extra - some fields - for example Custom|HTML - don't include events. Wrap such controls in a Container area.
Nick
Or - just discovered - use events on a group. I can't upload an image at the moment but if you add a group and then add events in Advanced settings to that group, Update Areas generates what looks to me to be a Switcher equivalent.
Nick
hi NickOrg. How did you get the group functionality to work. I want to do different things based on a drop-down menu but that does not seem to work.
Hi NickOg!
Did you manage to resolve the switcher area in the view section?
Thanks!
Balazs
hi NickOg can you add images here or upload images to some image website ?
thanks
Hi Nick,
You are doing exactly what I need to do. I have forms where in CF6 I had SWITCHES. I have no idea how to do this in CF7.
I am not a programmer and cannot figure out in CF7 how Max intended us to do this function, it was so easy in CF6.
I too cannot figure out how to upload any images to this forum as well, so explaining becomes difficult.
Any assistance would be greatly appreciated.
Thanks much,
Donna
Still not clear - how to create something like "Event Switcher" action as it was conveniently present in CF6???
Anyone?
NickOg,
Would you please either share your step by step on how you got this working, and I mean down to every detail? Especially how you write the values and the data provider.
I am really struggling here and nobody will give directions step by step with details and examples. I don't program so I really could use a hand here.
Thank you in advance,
Donna
You can put actions which share the same conditions under a Group action then control the group action!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
@admin
Good to know that somebody knows it. Any documentation? On download page I tried to download pdf docs for CF7, but with no luck
There is no full documentation for v7 available unfortunately, hopefully I can finish one in the next few weeks.
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Max_admin,
OK, I think I may have some success. I made a GROUP in Actions on the last page with the Email action and CONDITIONS. However, the email goes to the wrong value.
It seems to ignore my written in values for a drop-down (I don't use value [0]). I used values 1 through 9. It should have sent the email to my value 5 and it sent it to value 4.
Can anyone explain this to me?
Thank you in advance.
Ignore my previous post. Our site is extremely active and the bottom line is that what I tried with a GROUP in ACTIONS on the last page for email recipients based on values did not work at all.
Back to the drawing board!
Donna
Hello,
I also have problems with the switches in CC7.
In CC6 this was simple and easy to understand. Now it's a mix of events and IF queries.
Experimenting with the functions takes a lot of time.
Whenever I need to add switches to CC7, I always try "Run Conditions" under "Behaivors" first.
For example I have a table in VIEW. A column should display photos that the user previously entered in another form. If the user did not enter a photo or deleted his photo, then a "no_image.png" is displayed. A transparent 1x1 pixel image.
To do this, I inserted an HTML file into the column and a run condition in the HTML.
Table column: Article.photo
HTML content:
{modal title="{var:fundorte_list.row.Article.title}<br />
<span style="font-size:11px;font-family:arial">{var:fundorte_list.row.Article.photo_unterschrift}</span>" url="components/com_chronoforms7/chronoforms/uploads/{var:fundorte_list. row.Article.photo}"}<i class="fa-regular fa-image"></i>{/modal}
Run condition:
view_photo / if ANY rules match
{var:Article.photo} != no_image.png
{var:Article.photo} == photo.jpg
This works well but not perfectly. because it doesn't show me the no_image.png file, but the file name.
So I'll probably have to solve the file view problem via events. This is all quite complicated and the new names for the functions have to be found by yourself.
In the CC6, I solved the whole switch problem in a few minutes.
I built a switch under Functions.
Name: view_photo
Data Provider: {var:fundorte_list.row.Article.photo}
Value setup:
no_image.png:{data.set:photo$no_image.png disabled}
*:{view:html_view_photo}
Recreating all forms built with CC6 with the new version CC7 takes a lot of time and is sometimes a nightmare trip.
These "simplifications" of the forum to a minimum are not particularly helpful.
These political statements, which appear here from time to time, do not have such a positive effect on the mood in the forum.
F.