// get current document's URL $url = $modx->makeURL($modx->documentIdentifier); return $url;
[!eForm? ... &subject=`[[getPageURL]]` ... !]
0ad, You may want to try using [tt][~[*id*]~][/tt] instead, saves the extra overhead of running a snippet. Keep in mind that this technique works best on un-cached snippet calls, but since eForm needs to be called un-cached anyway, this solution is cleaner.
just a quick one: i want my subject to be the page url, anyone know how I do that please?
[!eForm? ... &subject=`[~[*id*]~]` ... !]
DATA WEBFORM: --------------------------------------------------- Name : Naam Value: Frank Los --- Name : Woonplaats Value: - --- Name : E-mail Value: [email protected] --- Name : StandOntvangen Value: 0 --- Name : Wedstrijd0Thuis Value: --- Name : Wedstrijd0Uit Value: --- Name : Wedstrijd1Thuis Value: --- Name : Wedstrijd1Uit Value: --- Name : Wedstrijd2Thuis Value: --- Name : Wedstrijd2Uit Value: --- Name : Wedstrijd3Thuis Value: --- Name : Wedstrijd3Uit etc.....
</font></td><td><font size="3" face="Arial"><strong>Portugal</strong></font></td><td><font size="3" face="Arial"><strong>-</strong></font></td> <td><font size="3" face="Arial"><strong>Turkije</strong></font></td><td><font size="3" face="Arial"><strong><Input name="Wedstrijd0Thuis" size="2" />-<Input name="Wedstrijd0Uit" size="2" /></strong></font></td> </tr>
[!eForm? &formid=`ContactForm` &subject=`[+subject+]` &to=`[email protected]` &from=`[+email+]` &ccsender=`0` &tpl=`ContactForm` &report=`ContactFormReport` &vericode=`1` &cssStyle=`formStyles` &eFormOnBeforeMailSent=`onBeforeMailSentFunction`!]
&mailselector=`department'

This discussion is closed to further replies. Keep calm and carry on.