But the placeholders [+objet+], [+email+], [+nom+] are replaced by an empty string. That’s a little bit strange because I’m using exactly the same form on an other website and it works perfectly
how do you set these placeholders?
You need a snippet or plugin which sets these placeholders and runs before these eform-snippet-call is parsed.
thanks for this! was completely lost as to why my forms had stopped working!
-
☆ A M B ☆
- 24,524 Posts
And that is why I really don’t like using the PHx plugin.
However, there is another workaround. The placeholder still exists in the $modx->placeholders array, it’s just that the placeholder tags have been eaten by the PHx garbage collection function (I still strongly suspect a bad regular expression in that code, but I’m not strong enough in regex to be able to confirm or fix that). Anyway, a snippet can be used to retrieve the placeholder directly from the $modx->placeholders[’placeholder-name’] instead of the [+placeholder-name+] tags.