Forums

Can Chronoform preload data from database?

nmay 18 Jun, 2008
If so, can you give some hint?
Can form code handle php? Like this:

1 Get data from db
2 Bind them to Variable
3 Output value = "<?php echo $address ?>" (default value is
what users have submitted last time
GreyHead 18 Jun, 2008
Hi nmay,

Yes, Form code can handle pretty much any combination of html php css & JavaScript.

Bob
bladerunner 10 May, 2009

Hi nmay,

Yes, Form code can handle pretty much any combination of html php css & JavaScript.

Bob



Bob, I agree.
All data can be preloaded except email adresses.
When I preload an email address the formfield is filled with:

<script language='JavaScript' type='text/javascript'> <!-- var prefix = 'ma' + 'il' + 'to'; var path = 'hr' + 'ef' + '='; var addy64847 = 'MyName' + '@'; addy64847 = addy64847 + 'MyDomain' + '.' + 'nl'; document.write( '<a ' + path + '\'' + prefix + ':' + addy64847 + '\'>' ); document.write( addy64847 ); document.write( '<\/a>' ); //-->\n </script><script language='JavaScript' type='text/javascript'> <!-- document.write( '<span style=\'display: none;\'>' ); //--> </script>This e-mailadres is protected by spambots, You need Javascript to view this part.<script language='JavaScript' type='text/javascript'> <!-- document.write( '</' ); document.write( 'span>' ); //--> </script>

Is there a way to overcome this Javascript part and just show me the email address?
I need it because customers may need to change there addresses.

Using: Joomla 1.0.15 and Chrono Forms 2.3.9

Thanks in advance.
Regards,
Jos
GreyHead 10 May, 2009
Hi jos,

The Joomla Email Cloaking PlugIn does this. Turn it off to check.

Switching round the order of the ChronoContact and Email Cloaking Plugins usually fixes it.

Bob
bladerunner 10 May, 2009
Thanks Bob,

Disabling the Email Cloaking PlugIn works.
Just like switching round the order.
You made me happy.
How simply can it be.

Jos
amorino 05 Nov, 2010
Hello,
could someone please give us an example of code ?
In fact I would print on the screen informations from database (users gave it previously 2 months ago with chronoforms) with a button which allow user to send these data via Email.

So user just see the data and click a button "Send me this page via Email"
Would it be possible?
Thank you very much
Best regards
Amorino
GreyHead 05 Nov, 2010
Hi morino,

The Profile plug-in is designed to do this.

Bob
amorino 05 Nov, 2010
Thank you much Bob

But I would display more than one field in the database and the plugin allow only one I see

Best regards
Amorino
GreyHead 05 Nov, 2010
Hi Amorino,

The plug-in requires you to select one column so that it can identify the record you want to display. It will display all the columns that are there.

Bob
kayrie 21 Nov, 2011
Hye guys,

Just wanna ask, i'm setup the profile plug-in so it will show data from the db.
But the problem is the data not show up.
it only shown at edit form page only.
Does anything wrong here?
GreyHead 24 Nov, 2011
Hi kayrie ,

Well, yes, something is wrong but it's impossible to tell what from the information here.

Bob
This topic is locked and no more replies can be posted.