Forums

Events parameters (values) are not retrieved when editing a form.

simelas 25 Jan, 2022
Hello Max,

hope everything fine.

as in the title. Events parameters (values) are not retrieved when editing a form.

When creating an event, parameters such as IF ...... Equals 1 , value is (are) properly saved in forms database and form works as expected. However when the form is reloaded after being saved, or when editing the form, later, the parameter is not loaded although it was properly saved.
configuration:php7.4, CF7, Joomla 3. Same occurs with joomla 4.
Same result when also tested with php7.3 and Joomla 3 or Joomla 4.

Kind regards

simelas
Max_admin 28 Jan, 2022
Please try to download the new 7.0.9, it should fix this issue!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
simelas 30 Jan, 2022
Hi Max,

updated to 7.0.9 . Still same issue....

Kr,

simelas
Max_admin 02 Feb, 2022
Please attach a simple form with the bug so I can test, or provide the steps to create the event and the data used and I will try to replicate it here!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
simelas 05 Feb, 2022
[file=bug-test-20220205-202015]bug-test-20220205-202015[/file]
Hi Max, here we go. Put 0 and 1 in event listening .

simelas
IBV_UIS 08 Feb, 2022
I have the same issue
Chronoforms 7.0.9 and Joomla 3.10.5.

Thz!
Frank
Pigna 07 Mar, 2022
And for me
jckant 07 Mar, 2022
I found out that if you use the IN / NOT IN option it works properly but with EQUALS / NOT EQUALS it does not.
Colnem 08 Apr, 2022
Hello

It's the same bug than Where Conditions in cf 7.0.7.
Max has forgottent to fix for this item.

You can fix by modify this value with bloc note:
Replace value:"value\":[\"your_value\"] by value:"value\":\"your_value\" and it works… but don't save !!!
wiva 22 Apr, 2022
Hello Max,

I wonder when this problem will be solved.
Migrated multi forms from from v5 and every time i stumble upon this annoying bug.

Max, Please Fix this for us.
WiVa
Colnem 23 Apr, 2022
Answer
3 Likes
Hi guys

I've found the bug.

File: /administrator/components/chronoforms7/chronoform/behaviors/view/views_event/view_events_rules_php
Line: 379
Text: 'origin' => ['name' => 'Connection[views]['.$n.'][vevents][#vevents#][rules][#rules#][value][ ]']

You have to delete last [ ], for a single value, like this
'origin' => ['name' => 'Connection[views]['.$n.'][vevents][#vevents#][rules][#rules#][value]']

To work, you have to change the value, then save... then correct the value
wiva 24 Apr, 2022
Thank you Colnem,

Its working indeed. I am updating al my forms and connections now.

Thanks again
roman5527 27 Apr, 2022
Hi, i fix this file.
values in admin section now will stay saved.

but i have problem when i add to events rule . it dont work on frontend.
can you help me fix it? thanks
Colnem 27 Apr, 2022
Hi

I use event rules in front end without problem.
What's your exemple?
roman5527 27 Apr, 2022
Hi, i have set this :
https://www.awesomescreenshot.com/image/26333037?key=7b5da8145362f61b7b06b0cee091857e

and on frontend :
https://www.awesomescreenshot.com/video/8623271?key=e0610d95c004503251191090d0af1a4f

thanks
Colnem 27 Apr, 2022
Sorry but I don't see very well...

Where is the bug?
roman5527 27 Apr, 2022
bug is when i have two events rule - on fronted field is not displa
Maybe is problem bad settings - how i need set events for show field when is selecting value 1 and hide this field when is selecting other value ?
Colnem 27 Apr, 2022
OK

I think that Equals or Not equals are not events.

Try to add Event Change + Equals or Event Change + Not Equals.
roman5527 27 Apr, 2022
Hi, i change it : https://prnt.sc/nphJShlzYmz_
but it dont work . Maybe i have bad settings. How i can set it ?

thnaks
Colnem 27 Apr, 2022
Yes you are right: it doesn't works like this.

You have to Add A complex Action on Event Changes and use javascript.
roman5527 27 Apr, 2022
Hi i tested it .

Here is my example : https://www.awesomescreenshot.com/image/26349997?key=990d8083806b1cdc2393273ba69864f0
but on frontend it doesnt work. events on field doesnt work. next conditions filed doesnt show.

its bad. in CF6 there was no problem.
Max please fix it . its big problem.
Colnem 28 Apr, 2022
Hi

You are right: this doesn't work like this, may be because Equals is not an event.
So you have to use Add Complex Action and Javascript function.
roman5527 28 Apr, 2022
Hi,
thanks for your answer.

Please can you help with this solution , because i dont know how i do it.

thanks
Colnem 28 Apr, 2022
Please, let me some time...
roman5527 13 Jun, 2022
hi any idea ? please ?
IBV_UIS 28 Jun, 2022
Any solution? I still have the same problem
roman5527 28 Jun, 2022
no . i dont have solution. please any idea ? ????
simelas 29 Jun, 2022
Maybe try for test purpose, greater then instead of equals . if it works then the bug is in equal....
Also sequence of events may play a role to get acting properly.
roman5527 29 Jun, 2022
Hi, thanks. But it not work.

none of the options work when i update File:/administrator/components/chronoforms7/chronoform/behaviors/view/views_event/view_events_rules_php
from this post https://www.chronoengine.com/forums/posts/t109771/p398305#p398305

but without this adjustment, the values are not saved .
the problem is also when you have Events in multiple fields

Will there be anyone here who could fix it globally?

Many Thanks
You need to login to be able to post a reply.