eForm - MODX Community Forums https://forums.modx.com/board/?board=91 <![CDATA[Snippet inside thankyou chunk doesn't work]]> https://forums.modx.com/thread/103257/snippet-inside-thankyou-chunk-doesn-t-work#dis-post-555768
I have a problem inside the chunk &thankyou:

<tr><td class="label">Store:</td><td>[[storeName? &id=`[+store+]`]]</td></tr>


The snippet storeName:

<?php
$table = $modx->getFullTableName("stores");
$query = "SELECT id,nom FROM $table WHERE id = '$id' LIMIT 1";
$result = $modx->db->query( $query );
$row = $modx->db->getRow( $result );
return $row['name'];


But nothing returns.

I try this:

<tr><td class="label">Store:</td><td>[[storeName? &id=`2`]]</td></tr>


It's work. The name is display.

If I use this:

<tr><td class="label">Store:</td><td>[+store+]</td></tr>


It's work and [+store+] display 2.

So, why it's doesn't work?

Help please.

By the way, I'm in Evo 1.4.0RC2]]>
https://forums.modx.com/thread/103257/snippet-inside-thankyou-chunk-doesn-t-work#dis-post-555768 Thu, 07 Dec 2017 07:20:34 +0000 https://forums.modx.com/thread/103257/snippet-inside-thankyou-chunk-doesn-t-work#dis-post-555768
<![CDATA[Injecting only answers into results pages?]]> https://forums.modx.com/thread/102314/injecting-only-answers-into-results-pages#dis-post-551345
I am looking to inject just the answers to multiple questions into a results page.

For example: Question 1: Are you nice or mean? A1 Nice A2 Mean / Question 2: Are you Large or small A1 Large A2 Small Q3 Whats your name?

Results page: You are a q1-a1, q2-a2 person q3..

Here is an example on typeform https://howsyourhappy.typeform.com/to/GdewQ6]]>
https://forums.modx.com/thread/102314/injecting-only-answers-into-results-pages#dis-post-551345 Wed, 31 May 2017 11:23:03 +0000 https://forums.modx.com/thread/102314/injecting-only-answers-into-results-pages#dis-post-551345
<![CDATA[MODx Evo eForm - captcha and recaptcha problem]]> https://forums.modx.com/thread/101650/modx-evo-eform---captcha-and-recaptcha-problem#dis-post-548281

well my problem with eForm build in captcha and google recaptcha looks that form not validating captcha.
When i fill every required field and leave empty captcha/recaptcha and send msg than ill get error message on page to fill captcha but even with empty captcha mail will be sent i give up and ask someone for help me with that.

MODx evo ver: 1.0.15
eForm ver: 1.4.6]]>
https://forums.modx.com/thread/101650/modx-evo-eform---captcha-and-recaptcha-problem#dis-post-548281 Tue, 24 Jan 2017 12:19:23 +0000 https://forums.modx.com/thread/101650/modx-evo-eform---captcha-and-recaptcha-problem#dis-post-548281
<![CDATA[eForm just started giving Authentication error and not sending (using SMTP)]]> https://forums.modx.com/thread/101353/eform-just-started-giving-authentication-error-and-not-sending-using-smtp#dis-post-546929
I was just contacted by an old client who said their contact form (eForm) has just started giving Authentication errors.

Main mail: Mailer was unable to send mailThe following From address failed: myaddress@yahoo.com : MAIL not accepted from server,530,5.7.1 Authentication required
SMTP server error: 5.7.1 Authentication required
SMTP server error: 5.7.1 Authentication required

Nothing has changed. We have it set to use secure SMTP in the admin settings under Tools -> Configuration -> User. I have tripled checked all the settings and re-saved the password to make sure it was correct.

Can anyone shed some light on why the form that has being working like clockwork would start having errors?

Many Thanks!]]>
https://forums.modx.com/thread/101353/eform-just-started-giving-authentication-error-and-not-sending-using-smtp#dis-post-546929 Sun, 04 Dec 2016 07:33:31 +0000 https://forums.modx.com/thread/101353/eform-just-started-giving-authentication-error-and-not-sending-using-smtp#dis-post-546929
<![CDATA[eForm, JQuery and AJAX]]> https://forums.modx.com/thread/47306/eform-jquery-and-ajax?page=2#dis-post-545860
Step one:
1. Create the document that will have the form (in my case, this was actually part of the template footer in a "social networking" block with links to Twitter, etc; this was a "Share with a Friend" button).
2. On this document put a link, or a button, or whatever you want, with a classname of "activate_modal".
3. Also on this document put two divs, one for the modal overlay and one for the actual form.
<p><a class="activate_modal" name="form_window" href="#">First modal window.</a></p>

<div id="mask"></div>
<div id="form_window" class="modal_window"></div>

A bit of CSS to set this up:
#mask{
position:absolute; /* important */
top:0px; /* start from top */
left:0px; /* start from left */
height:100%; /* cover the whole page */
width:100%;  /* cover the whole page */
display:none; /* don't show it '*/          

/* styling below */
background-color: transparent;
}
   
.modal_window{
position:absolute; /* important so we can position it on center later */
display:none; /* don't show it */

/* styling below */
color:white;
}

/* style a specific modal window  */
#form_window{
border:1px solid gray;
background: #246493;
color:black;
padding: 0 20px 20px;
}

Step Two:
1. Create a document with no template (none). Give it an appropriate alias; this will be used later in the AJAX request. Something like ’shareform’ maybe. To avoid problems, I cleared all the Settings checkboxes except Published. I also cleared the Show in Menu checkbox.
2. In the content, put a normal eForm snippet call:
[[eForm? &formid=`ShareForm` &to=`[+fmail+]` &from=`[+email+]` &replyto=`[+email+]` &fromname=`[+name+]` &subject=`[+name+] Recommends This site` &tpl=`ShareFormTpl` &report=`ShareReportTpl` &thankyou=`ShareThankyouTpl`]]

Step Three:
Create the chunks.
1. ShareFormTpl
<p id="validationmessage">[+validationmessage+]</p>
<form id="ShareForm" action="#" method="post">
<table><tr>
<th>Your Name:</th><th>Your Email</th>
</tr><tr>
<td><input type="text" id="name" name="name" value="[+name+]" eform="Your Name::1" /></td>
<td><input type="text" id="email" name="email" value="[+email+]" eform="Your Email::1" /></td>
</tr><tr>
<th>Friend's Name</th><th>Friend's Email</th>
</tr><tr>
<td><input type="text" id="fname" name="fname"value="[+fname+]" eform="Friend's Name::1" /></td>
<td><input type="text" id="fmail" name="fmail" value="[+fmail+]" eform="Friend's Email::1" /></td>
</tr><tr>
<th colspan="2">Message</th>
</tr><tr>
<td colspan="2"><textarea id="message">[+message+]</textarea></td>
<tr><tr>
<td colspan="2">
<input type="button" id="closebutton" class="close_modal" value="Cancel" onclick="close_modal()" />
<input type="button"  id="submitbutton" value="Send Mail" onclick="submit_form()" />
</td></tr></table></form>

The only thing that’s really important here is that you use input type="button", since you don’t want the form to submit as normal. Make sure to give all of the form’s input elements an ID, including the buttons, as these will be used in the javascript later.
2. ShareReportTpl
<h2>[+subject+]</h2>
<p>[+message+]</p>

3. ShareThankyouTpl
<p>Your email has been sent.</p>
<p><input type="button" id="close" name="close" value="Close" onclick="close_modal()" /></p>

Yes, this wouldn’t validate, but since it’s loaded via javascript and AJAX a validator will never see it. The button (or link or image or whatever you prefer) is necessary, as this modal window won’t go away unless something triggers the close_modal() function.
And finally, the JQuery javascript, which can be loaded as usual with javascript tags in your template head. I have it in a file named "custom.js" in the assets/js directory.
$(document).ready(function(){
    //get the height and width of the page
    var window_width = $(window).width();
    var window_height = $(window).height();
    //vertical and horizontal centering of modal window(s)
    /*we will use each function so if we have more then 1
    modal window we center them all*/
    $('.modal_window').each(function(){
        //get the height and width of the modal
        var modal_height = $(this).outerHeight();
        var modal_width = $(this).outerWidth();
        //calculate top and left offset needed for centering
        var top = (window_height-modal_height)/2;
        var left = (window_width-modal_width)/2;
        //apply new top and left css values
        $(this).css({'top' : top , 'left' : left});
    });
        $('.activate_modal').click(function(e){
              //get the id of the modal window stored in the name of the activating element
              var modal_id = $(this).attr('name');
            // load eform
            $('#'+modal_id).load('shareform.html');
              //use the function to show it
              show_modal(modal_id);
              e.preventDefault;
        });
//        $('.close_modal').click(function(e){
            //use the function to close it
//            close_modal();
//            e.preventDefault();
//         });
});

    //THE FUNCTIONS
function close_modal(){
    //hide the mask
    $('#mask').fadeOut(600);
    //hide modal window(s)
    $('.modal_window').fadeOut(500);
}
function show_modal(modal_id){
    //set display to block and opacity to 0 so we can use fadeTo
    $('#mask').css({ 'display' : 'block', opacity : 0});
    //fade in the mask to opacity 0.8
    $('#mask').fadeTo(800,0.8);
    //show the modal window
    $('#'+modal_id).fadeIn(800);
}
function submit_form(){
    // disable the submit button
    $('#submitbutton').attr("disabled", true);  
    // get the field values
    var name = $("input#name").val();
    var email = $("input#email").val();
    var fname = $("input#fname").val();
    var fmail = $("input#fmail").val();
    var message = $("textarea#message").val();
    
    // load the eform results
    $('#form_window').load('shareform.html', {'name':name, 'email':email, 'fname':fname, 'fmail':fmail, 'message':message, 'formid':'ShareForm'});    
}

One thing to pay attention to here is the last parameter in the load function; in this case ’formid’:’ShareForm’. eForm requires this to be in the POST in order to process the rest of the POST values. You can see in the list of values to send via AJAX in the final submit_form() function that it uses the ID of each input field to get its value.

All the eForm features work; if one of the fields is left empty or is invalid, the error messages along with the form will be loaded, just as it is in normal page-refresh eForm usage. You’ll want to experiment with the placement of the form and the css to get it just right for your site’s needs.

http://tutsvalley.com/tutorials/how-to-make-a-completely-reusable-jquery-modal-window/
http://docs.jquery.com/Ajax/load
]]>
https://forums.modx.com/thread/47306/eform-jquery-and-ajax?page=2#dis-post-545860 Thu, 20 Oct 2016 08:35:27 +0000 https://forums.modx.com/thread/47306/eform-jquery-and-ajax?page=2#dis-post-545860
<![CDATA[Could not instantiate mail function.]]> https://forums.modx.com/thread/46732/could-not-instantiate-mail-function?page=4#dis-post-544450
’Could not instantiate mail function’ can anyone help me with this porblem?

Thanks]]>
https://forums.modx.com/thread/46732/could-not-instantiate-mail-function?page=4#dis-post-544450 Wed, 24 Aug 2016 08:26:45 +0000 https://forums.modx.com/thread/46732/could-not-instantiate-mail-function?page=4#dis-post-544450
<![CDATA[Eform O length file attachment]]> https://forums.modx.com/thread/47088/eform-o-length-file-attachment#dis-post-542106
Small problem with eform when i attach a empty file,
I assume that i would need some type of if statement to check for 0 length in the file
but not sure how to code it in myself.

Any help would be greatly appreciated

Error MSG

« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »

PHP error debug
Error: fread() [function.fread]: Length parameter must be greater than 0
Error type/ Nr.: Warning - 2
File: /webhost/manager/includes/controls/class.phpmailer.php
Line: 1095
Line 1095 source: $file_buffer = fread($fd, filesize($path));

CODE class.phpmailer.php

$magic_quotes = get_magic_quotes_runtime();
set_magic_quotes_runtime(0);

>>>>> $file_buffer = fread($fd, filesize($path));

$file_buffer = $this->EncodeString($file_buffer, $encoding);
fclose($fd);
set_magic_quotes_runtime($magic_quotes);
return $file_buffer;^M

Regards T
]]>
https://forums.modx.com/thread/47088/eform-o-length-file-attachment#dis-post-542106 Wed, 01 Jun 2016 05:14:05 +0000 https://forums.modx.com/thread/47088/eform-o-length-file-attachment#dis-post-542106
<![CDATA[eform dropdown 'Incorrect value' Error [Solved]]]> https://forums.modx.com/thread/47439/eform-dropdown-incorrect-value-error-solved#dis-post-532711 I am using three drop-down 1 for Region(initial have some values like Asia,Africa,Australia etc) 2 is country(initial have no option) and 3 is state(initial have no option).

on change of 1st drop-down(Region) 2nd drop-down(country) display some country depending on Region using javascript.Similarly when we select country 3rd drop-down(state) show state depending on country.
When efrom post is showing error like that

Some errors were detected in your form:
cselcountry » Incorrect value
cselstate » Incorrect value
.

Can anybody tell me what the problem.

Brijesh Singh
Aquevix Solution]]>
https://forums.modx.com/thread/47439/eform-dropdown-incorrect-value-error-solved#dis-post-532711 Sat, 03 Oct 2015 11:30:43 +0000 https://forums.modx.com/thread/47439/eform-dropdown-incorrect-value-error-solved#dis-post-532711
<![CDATA[ [Solved] User-defined dynamic subject placeholders]]> https://forums.modx.com/thread/46678/solved-user-defined-dynamic-subject-placeholders#dis-post-531456
[!eForm?&subject=`[+subject+]` ...


I’d like to see the next tweak/rev support user-defined placeholders rather than the fixed "subject" placeholder. This would be handy for pages that use an ID that’s different than subject, or to avoid XHTML validation failures when you have multiple forms on a page using this technique.]]>
https://forums.modx.com/thread/46678/solved-user-defined-dynamic-subject-placeholders#dis-post-531456 Sun, 13 Sep 2015 12:26:26 +0000 https://forums.modx.com/thread/46678/solved-user-defined-dynamic-subject-placeholders#dis-post-531456
<![CDATA[Parse Error Started showing up from eForm]]> https://forums.modx.com/thread/97377/parse-error-started-showing-up-from-eform#dis-post-526609

« MODX Parse Error »
MODX encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error : htmlspecialchars() [function.htmlspecialchars]: Invalid multibyte sequence in argument
ErrorType[num] : WARNING[2]
File : /home/saintmon/public_html/assets/snippets/eform/eform.inc.php
Line : 701
Source : $value = htmlspecialchars($value, ENT_QUOTES, $modx->config['modx_charset']);
Basic info
REQUEST_URI : http://www.saintmonicaconverse.net/index.php?id=19
Resource : [19]Contact Us
Current Snippet : eForm
Referer : http://www.saintmonicaconverse.net/index.php?id=19
User Agent : Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.0.3705)
IP : 124.73.137.20
Benchmarks
MySQL : 0.0024 s (2 Requests)
PHP : 0.0114 s
Total : 0.0138 s
Memory : 3.12239837646 mb

Backtrace
1 DocumentParser->executeParser()
index.php on line 144
2 DocumentParser->prepareResponse()
manager/includes/document.parser.class.inc.php on line 1579
3 DocumentParser->outputContent()
manager/includes/document.parser.class.inc.php on line 1681
4 DocumentParser->parseDocumentSource()
manager/includes/document.parser.class.inc.php on line 596
5 DocumentParser->evalSnippets()
manager/includes/document.parser.class.inc.php on line 1461
6 DocumentParser->_get_snip_result()
manager/includes/document.parser.class.inc.php on line 1060
7 DocumentParser->evalSnippet()
manager/includes/document.parser.class.inc.php on line 1147
8 eval()
manager/includes/document.parser.class.inc.php on line 1009
9 require()
manager/includes/document.parser.class.inc.php(1009) : eval()'d code on line 1
10 eForm()
assets/snippets/eform/snippet.eform.php on line 100
11 formMerge()
assets/snippets/eform/eform.inc.php on line 666
12 htmlspecialchars()
assets/snippets/eform/eform.inc.php on line 701]]>
https://forums.modx.com/thread/97377/parse-error-started-showing-up-from-eform#dis-post-526609 Mon, 08 Jun 2015 03:40:39 +0000 https://forums.modx.com/thread/97377/parse-error-started-showing-up-from-eform#dis-post-526609
<![CDATA[eform validation removes my dynamic variable]]> https://forums.modx.com/thread/97099/eform-validation-removes-my-dynamic-variable#dis-post-525240 http://taiyoagency.com/new-westminster-condo.com/listing.html?listid=6287

I'm using eform with custom php code to grab a URL parameter and query the database and finally output the Property Address in the form field.

This all works great without validation however that won't work in this day and age will it? Here is my eform call:

[!GetCode!]
			[!eForm? &protectSubmit=`0` &eFormOnBeforeFormParse=`eformGetCode` &formid=`EmailForm` &to=`myemail@gmail.com` &from=`((email))` &fromname=`((name))` &subject=`[(site_name)] > [+longtitle+] Viewing Request`  &ccsender=`0` &tpl=`_ContactForm-MLS` &report=`ContactFormReport` &invalidClass=`invalidValue` &requiredClass=`requiredValue` &gotoid=`13`!]


here is the GetCode snippet:

<?php
function eformGetCode(&$fields, &$templates) {
	global $modx; // Access to DocumentParser
 
	// get parameter from url
	$mail_id = isset($_REQUEST['listid']) ? intval($_REQUEST['listid']) : 0;
 
	$evt =& $modx->event; // The Snippet call event (not eFormOnBeforeFormParse event)
 
	// Replicate $isPostBack variable
	$validFormId = ($evt->params['formid'] == $_POST['formid']);
	$isPostBack = ($validFormId && count($_POST) > 0); // (bool)true if the form is being updated
 
	if (!$isPostBack && $mail_id > 0) {
		// Check for NOT postback, cuz we want to populate an empty form
		// Also, make sure we have an id greater than 0
		$rs = $modx->db->select(
			'`Address`, `ListingID`', // fields to get
			'mls_listings', // custom table
			'ListingID='.$mail_id // Select by id
		);
		$row = $modx->db->getRow($rs); // Get the single row
		
		if (!empty($row)) // Does the row have data?
			$fields = $row; // Copy the data over to the fields variable
	} else {
		// The form has beed posted, let's not disturb the data.
	}
	return true; // A value of false will stop the eForm parser
}
?>


here is the chunk _ContactForm-MLS:

<a name="contact"></a>
[+validationmessage+]<br/>
<form method="post" action="[~[*id*]~]?listid=[+ListingID+]#contact" id="EmailForm" name="EmailForm">
		<div class="field">
						<input type="text" name="name" id="cfName" onclick="this.value='';" onfocus="this.select()" 
            onblur="this.value=!this.value?'':this.value;" value="" class="input text" placeholder="Your name" class="contact_field"  eform="Your Name::1:" />
					</div>
     				 <div class="field">
						<input type="text" name="email" id="cfEmail" onclick="this.value='';" placeholder="Your e-mail" onfocus="this.select()" onblur="this.value=!this.value?'':this.value;" eform="Email Address:email:1" value="" class="input text" />
					</div>
					<div class="field">
						
						<input value="[+Address+]"  name="subject" id="cfRegarding"  placeholder="[+Address+]" eform="Property::0">
					</div>

					<div class="field">
<input name="contact" id="cfContact" class="button full th-brown" value="Send" type="submit" />
					</div>
				</form>



Can anyone help fix this so that I can still have validation and retain the property address?

Thx!]]>
https://forums.modx.com/thread/97099/eform-validation-removes-my-dynamic-variable#dis-post-525240 Wed, 06 May 2015 01:34:40 +0000 https://forums.modx.com/thread/97099/eform-validation-removes-my-dynamic-variable#dis-post-525240
<![CDATA[Default-checking dynamic radios/checkboxes inserted via onBeforeFormParse]]> https://forums.modx.com/thread/97098/default-checking-dynamic-radios-checkboxes-inserted-via-onbeforeformparse#dis-post-525238 while using eForm 1.4.6 in MODX 1.0.15 I encountered the following problem.
There is a placeholder in my eForm template which is replaced by a bunch of radio buttons using the eformOnBeforeFormParse event. The problem is, that whenever a validation error occurs, all checked radio buttons weren't checked anymore.
The template looks like this:
<form id="test">
  <input type="text" name="fullname" eform="Name::1">
  [+placeholder+]
</form>

The function that is called by eformOnBeforeFormParse looks like this:
function makeRadios(&$fields,&$templates) {
  for($i=1;$i<=31;$i++) {
    $ph .= '<input type="radio" name="day['.$i.']" id="day_'.$i.'_A" value="A"><label for="day_'.$i.'_A">A</label>';
    $ph .= '<input type="radio" name="day['.$i.']" id="day_'.$i.'_B" value="B"><label for="day_'.$i.'_B">B</label>';
  }
  $templates['tpl'] = str_replace('[+placeholder+]',$ph,$templates['tpl']);
  return true;
}

which renders the radios correctly as
<input type="radio" name="day[1]" id="day_1_A" value="A"><label for="day_1_A">A</label>
<input type="radio" name="day[1]" id="day_1_B" value="B"><label for="day_1_B">B</label>
<input type="radio" name="day[2]" id="day_2_A" value="A"><label for="day_2_A">A</label>
<input type="radio" name="day[2]" id="day_2_B" value="B"><label for="day_2_B">B</label>
...

I tried to set the checked-attribute inside the makeRadios-function, but eForm removes all checked-attributes while parsing. Than I tried to set the value of $fields['day'][1] manually via an eformOnBeforeFormParse-function, but again no radios were checked.

Now the trick. In a function called by eformOnBeforeFormParse I have to set a value to $fields['day1'] instead of $fields['day'][1].
function setValues(&$fields) {
  if(is_array($fields['day'])) {
    foreach($fields['day'] as $i => $v) {
      $fields['day'.$i] = $v;	
    }
  }
  return true;
}

So it was a problem with having square brackets in the name-attribute of my radio buttons. Obviously eForm changes "day[1]" to "day1".]]>
https://forums.modx.com/thread/97098/default-checking-dynamic-radios-checkboxes-inserted-via-onbeforeformparse#dis-post-525238 Wed, 06 May 2015 12:18:12 +0000 https://forums.modx.com/thread/97098/default-checking-dynamic-radios-checkboxes-inserted-via-onbeforeformparse#dis-post-525238
<![CDATA[Populate MultiTV drop down inside eform]]> https://forums.modx.com/thread/95288/populate-multitv-drop-down-inside-eform#dis-post-515934 I'm using in the great MultiTV of Jako to manage a group of dates.
Now I'm working on a request form where I want to populate a drop down list with these dates.

Outside eForms I'm able to generate the list and this is my call - [!multiTV? &tvName=`calendario-date` &docid=`[*id*]` &display=`10` &outerTpl=`outer-multi-calendar` &rowTpl=`row-multi-calendar`!]

But how I have to do in the eform template? Probably I have to use a eFormOnBeforeFormParse but i don't know how.

Thanks for any help.]]>
https://forums.modx.com/thread/95288/populate-multitv-drop-down-inside-eform#dis-post-515934 Mon, 01 Dec 2014 03:02:11 +0000 https://forums.modx.com/thread/95288/populate-multitv-drop-down-inside-eform#dis-post-515934
<![CDATA[eForm not working after upgrading to MODX Evo 1.0.14]]> https://forums.modx.com/thread/95123/eform-not-working-after-upgrading-to-modx-evo-1-0-14#dis-post-515128
Thanks!]]>
https://forums.modx.com/thread/95123/eform-not-working-after-upgrading-to-modx-evo-1-0-14#dis-post-515128 Tue, 18 Nov 2014 04:13:51 +0000 https://forums.modx.com/thread/95123/eform-not-working-after-upgrading-to-modx-evo-1-0-14#dis-post-515128
<![CDATA[VeriCode not displaying]]> https://forums.modx.com/thread/91971/vericode-not-displaying#dis-post-512470
Here is what we have in the form

Please enter the anti spam code below:

<img src="[+verimageurl+]" alt="verification code" border="1" />
</p>
<p>
<label accesskey="c" for="vericode">code</label>
<input type="text" name="vericode" size="20" class="inputSmall" />
VeriCode is initialised [!eForm? &formid=feedbackForm &tpl=contactForm &report=contactFormEmail &to=info@sitedomain.com &subject=Website Contact Form &vericode=1!]

GD Support enabled GD Version bundled (2.0.34 compatible) FreeType Support enabled FreeType Linkage with freetype FreeType Version 2.3.11 GIF Read Support enabled GIF Create Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled XPM Support enabled XBM Support enabled

I have attempted to re-upload the files, edit permissions, modify htaccess to give explicit permissions to that file as well as moving it out of the secured /manager/ area and the problem still persists. It seems common enough but not common enough for there to be a fix or any straight forward public solution?

Any help on this matter would be appreciated.]]>
https://forums.modx.com/thread/91971/vericode-not-displaying#dis-post-512470 Sun, 12 Oct 2014 03:52:46 +0000 https://forums.modx.com/thread/91971/vericode-not-displaying#dis-post-512470
<![CDATA[Problem with special characters in eForm]]> https://forums.modx.com/thread/92658/problem-with-special-characters-in-eform#dis-post-506358 All special characters (é, ë, ê,...) are replaced by a question mark
Already tried phx, onBeforeMailSent snippet, and changing the charset in phpmailer class but nothing seems to work, or I'm doing something wrong.
Any ideas how to fix this?

thanks!]]>
https://forums.modx.com/thread/92658/problem-with-special-characters-in-eform#dis-post-506358 Tue, 12 Aug 2014 03:25:23 +0000 https://forums.modx.com/thread/92658/problem-with-special-characters-in-eform#dis-post-506358
<![CDATA[Adding a file from the server to eform as attachment]]> https://forums.modx.com/thread/92435/adding-a-file-from-the-server-to-eform-as-attachment#dis-post-505109
I tryed to add it in the files array, (this works that I get a file on my server) but how do I get this file attached with the send email?

This is what I did: i called the on eFormOnBeforeMailSent

<?php
function attachFile( &$fields ){

//...more pdf stuff...
$pdf->Output(MODX_BASE_PATH . 'assets/pdf/facturen/file.pdf', 'F');

$_FILES['attachment']['name'] = 'factuur123.pdf';
$_FILES['attachment']['error'] = 0;
$_FILES['attachment']['tmp_name'] = MODX_BASE_PATH . 'assets/pdf/facturen/file.pdf';
$_FILES['attachment']['size'] = filesize(MODX_BASE_PATH . 'assets/pdf/facturen/file.pdf');

return true;


the pdf is created but the file is not attached even tho i have a [+attachment+] placeholder in the report.

any idea how i can do this?
]]>
https://forums.modx.com/thread/92435/adding-a-file-from-the-server-to-eform-as-attachment#dis-post-505109 Wed, 30 Jul 2014 07:18:08 +0000 https://forums.modx.com/thread/92435/adding-a-file-from-the-server-to-eform-as-attachment#dis-post-505109
<![CDATA[ [Solved] eForm working but Captcha / Veriword image is not displaying]]> https://forums.modx.com/thread/46753/solved-eform-working-but-captcha-veriword-image-is-not-displaying#dis-post-502429
I have eForm 1.4.4 working properly on modx 0.9.5, but the Captcha image is not being displayed (just says verification code and red X in IE). I’ve searched about captcha images but only saw problems regarding the actual verification, not the image. I have GD library enabled.

Could this be a server related issue? I just recently upgraded to PHP 5 and I had it displaying properly before. Perhaps it is a configuration or permission issue?

Any ideas? Thanks for your time.]]>
https://forums.modx.com/thread/46753/solved-eform-working-but-captcha-veriword-image-is-not-displaying#dis-post-502429 Mon, 07 Jul 2014 10:16:46 +0000 https://forums.modx.com/thread/46753/solved-eform-working-but-captcha-veriword-image-is-not-displaying#dis-post-502429
<![CDATA[eForm 1.4.5 converts double/single quotes to entity values in plain text emails]]> https://forums.modx.com/thread/91569/eform-1-4-5-converts-double-single-quotes-to-entity-values-in-plain-text-emails#dis-post-500553
I recently updated our site from Evo 1.0.3 to 1.0.13 due to the AjaxSearch vulnerability. There were a few issues with the upgrade which I managed to iron out, but one side effect that I haven't been able to resolve is that eForm email reports are now being sent with special characters converted to HTML entities. This is because of the following in the "formMerge" function:

		// prevent XSS for formfields
		if (isset($fld)) {
		    $value = htmlspecialchars($value, ENT_QUOTES, $modx->config['modx_charset']);
		}


If I comment this out, special characters are not converted and the emails look fine, but obviously I don't want to introduce a vulnerability.

Is it possible for us to safely send eForm reports as plain text without converting the special characters?]]>
https://forums.modx.com/thread/91569/eform-1-4-5-converts-double-single-quotes-to-entity-values-in-plain-text-emails#dis-post-500553 Mon, 16 Jun 2014 10:55:52 +0000 https://forums.modx.com/thread/91569/eform-1-4-5-converts-double-single-quotes-to-entity-values-in-plain-text-emails#dis-post-500553
<![CDATA[eForm Conflict with PHP 5.4?]]> https://forums.modx.com/thread/90759/eform-conflict-with-php-5-4#dis-post-497470
I upgraded a couple months ago, but finally realized today what was happening when someone called me and said they submitted the contact form twice yesterday, but got no response. Now I wonder how many people actually have done the same thing without response. This problem is happening across several of my sites on this server.

By the way, these are all Evo sites.]]>
https://forums.modx.com/thread/90759/eform-conflict-with-php-5-4#dis-post-497470 Fri, 09 May 2014 11:54:03 +0000 https://forums.modx.com/thread/90759/eform-conflict-with-php-5-4#dis-post-497470