ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

Reload Event on Submit

rafaelscouto 24 Apr, 2019
Good Morning,

I created a form with this new CF update, but it is not working as expected.

I use two dropdowns, the 1st with the States, and the 2nd with the cities, where there is a relationship with the 1st through a reload event.

In the event load

I load the database with the states
I show the layout display *
Custom code with some masks

* I removed the automatic option because I realized that my custom code did not work because it needs to be loaded after the form is displayed.

I created an event called reload_cidades

I load the database with the cities
Custom code with a {view: field_name}.

So far everything is working. In the old version it worked that way.

The problem begins with the submit event

When you click the submit button, the reload_cidades event is called and the dropdown that is in the custom code is displayed.

It does not call the submit event and does not save the data.
healyhatman 24 Apr, 2019
Answer
Make sure the reload_cidades event is after the submit event, and in the settings of the event set its type to Standalone.
This topic is locked and no more replies can be posted.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com