#1 2016-01-21 00:58:30

greet
Ion Tester
From: Belgium
Registered: 2012-05-07
Posts: 143

Email view check data existence

After a form is submitted I sent an email to admin. I like to find out if a checkbox is checked.
Problem is that if the checkbox is not checked de data tag (<ion:data:fieldname/>) gives an error. If it is checked it gives the value.
How can I see if it is checked to avoid the error (Tag missing: radio-heen, scope: data.) in the email?

thx

Offline

#2 2016-03-23 19:54:35

adaliszk
Ionize Friend
From: Germany
Registered: 2010-09-20
Posts: 397
Website

Re: Email view check data existence

Hello,

You have to check that the data is isset in the data scope. Maybe an ion:data function will do it, sadly I dont see which function is added to the data, I can se that the data: tag is defined in the libraries/Tagmanager/Email.php withc extending the Tagmanager.

I think the Email cass should be extended with a data:isset where you will able to check some data is exists or defined.

Best Regards,
Adamos42


Webdeveloper, Programmer, Application developer, Ionize friend
@adaliszk

Offline

What's Ionize ?

Ionize is an Open Source Content Management System created by webdesigners for webdesigners.

Created and maintained by Partikule and Toopixel, Ionize wants to be the easiest and most powerful CMS.

Can I help ?

Because talent is nothing without involvement, we are looking for motivated coders and webdesigners to join the project team.

Resources

Website : ionizecms.com
Documentation : doc.ionizecms.com

Development : Ionize on GitHub
Translations : Ionize Translations