Forums

Event Swither and Switcher - V7 equivalent

NickOg 04 Mar, 2021
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
NickOg 21 May, 2021
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
NickOg 23 May, 2021
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
scoutingsintpatrick 27 May, 2021
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.
NickOg 27 May, 2021
Answer
Hi
In the actions editor,
  1. add a group from the Basics menu
  2. in Advanced Settings in that group, add Events - fig 1
  3. Then in the new events section, add the events that you need
  4. Update Areas - you will then find area for each event
  5. Add your logic to those events fig 2
I still can't upload an image to explaion buit I will try to send you an IM copy

Nick
nyesteb 14 Dec, 2021
Hi NickOg!

Did you manage to resolve the switcher area in the view section?

Thanks!
Balazs
roman5527 22 Mar, 2022
hi NickOg can you add images here or upload images to some image website ?

thanks
pgrnycomdir 13 Nov, 2022
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
artsapiens 12 Dec, 2022
Still not clear - how to create something like "Event Switcher" action as it was conveniently present in CF6???
Anyone?
pgrnycomdir 13 Dec, 2022
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
artsapiens 13 Dec, 2022
Here what I found what can do some kind of "Event switcher" job - look in Actions side, in Behaviors (below of some actions):





Seems like these conditions are checked prior to action, so you can regulate which action will be executed, adding LOTS of actions and checking conditions before each of them very ineffective, but this is all I could find.
Max_admin 13 Dec, 2022
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.
artsapiens 13 Dec, 2022
@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
Max_admin 13 Dec, 2022
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.
pgrnycomdir 14 Dec, 2022
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.
pgrnycomdir 14 Dec, 2022
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
Fredolino 15 Dec, 2022
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.
You need to login to be able to post a reply.