Hello,
I made a form with a dropdown list.
Each entry in this list is attached to a container.
For example, selecting title1 appears the container title1, selecting title2 appears the container title2, etc. ....
The other containers are hidden, for example selecting title1 not see title2.
The problem is the sending the email.
In the container I have selected as Type: DIV.
When the user fills in the form for example of the container titolo1 and click on the SEND button exits an error stating that there are fields required not filled in the container titolo2.
How can I avoid this error?
It is also possible that in the mail to show only the fields filled in?
Hi creositi,
In ChronoForms v4 you could disable hidden elements and that would remove the validation from them. I think that the same will work in CFv5.
To show only the fields filled in in the Email template you have to use PHP to check the returned values and include just the parts that you need.
Bob
Yes, there is also the feature in v5 but I do not understand how to operate it.
Virtually EVENTS of DROPDOWN I entered:
TITLE1 show TITLE1
TITLE1 hide TITLE2
TITLE1 enable TITLE1
TITLE1 disable TITLE2
TITLE2 hide TITLE1
TITLE2 show TITLE2
TITLE2 disable TITLE1
TITLE2 enable TITLE2
But it does not work.
Hi,
v5 or v4 ? because on the site I checked, its v4🙂
You must have the latest v5 update for this to work, hidden elements will not be validated!
Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
:-) Is another site ..... I use your component EVERYWHERE!!!! :-)
It is v5, I installed the new version (nice new features) without uninstalling the previous one ....
First, however, showed the container but not enabled them (ie by clicking on TITLE1 showed the container TITLE1 but we could not go forward because he wanted compilassi TITLE2 even though you could not see)
Now instead clicking on TITLE1 does not come out the container.
HELP!!! :-)
Please post a link to the form here or by PM🙂
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
I just sent you a PM .... Thanks 😀
I think the problem is that you use CSS to hide the containers on page load, although this should be ok, but CFv5 doesn't force display the element when you set the events to "show", instead, it just removes the display property assigned to the elements using a style attribute, which doesn't affect the CSS definition you have.
So, instead of using this code in CSS action:
#rinnovo {
display: none;
width:100%;
}
you will have to use this code in JS action:
jQuery(document).ready(function($){
$("#rinnovo").css("display", "none");
});
Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Perfect, now the containers are visible again.
Only that if I fill the container TITLE1 does not make me send the mail because he says that the data required in TITLE2 have not been filled out.
You have normal field validation or "server side" ? because "server side" can't be skipped with making fields hidden.
Normal fields validation will be skipped if the fields are hidden but not under a container of type "tab", just make sure you have the latest Chronoforms v5 installed!
Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.