-
- 7 Posts
I got this message, but when I changed the hidden inputs to have eform="::0::" without the REGEX it worked for me.
-
- 42 Posts
thanx for the advice, sorry to say it didn’t work.
What does the final page source (view source in your browser) look like? I’m not so sure that the [*pagetitle*] will work in the chunk template like that.
-
- 1,010 Posts
Your hidden fields are filled with the placeholder values after eform has stopped executing, therefore eform does not see the actual values when they are posted and because of the automatic hidden field validation creates errors. The REGEX rules should override this but that seems to be going wrong. First off all set the &debug parameter to 3 and watch the error messages again. Where it normally prints "undefined" you should now see the actual field name so that you at least know where it goes wrong.
Just having placeholders in your hidden field values is not the best way to populate these fields by the way. What you are basically doing with the REGEX expressions is allow any value, negating any validation. This means that anyone could tamper with the values and cause havoc. A safer scenario would be to populate these values yourself in the eFormOnBeforeParse event of eForm. There are numerous examples of doing this in the forum but basically you’d use the form template as is and use str_replace() in your event function to set the proper values.
+1 with thank you msg 8-)
modx and ecommerce pro
-
- 898 Posts
This works, in the hidden fields, put some type of eform call.
I put this: eform="::0::" and it works. I got it from here:
http://wiki.modxcms.com/index.php/EForm