This project is read-only.

Custom Forms - Rule

Topics: Administration, General
Jan 29, 2013 at 5:28 PM
Edited Jan 29, 2013 at 5:28 PM

I set up a contact form and it's not sending email. I have messaging information correct because I use the same information for Backup Exec and it work.

This is what I have in the body of the rule. Can anyone tell me if it is correct?






  • Name: {Content.Fields.ContactUs.Name}}
  • Name: {Content.Fields.ContactUs.Email}
  • Name: {Content.Fields.ContactUs.Phone}





  • Name: {Content.Fields.ContactUs.Message}





  • Jan 31, 2013 at 2:39 AM
    The thing is, your backup system is probably not running under the same account, and maybe not even on the same machine. You should ask your systems admin to investigate where the e-mail was blocked.
    Jan 31, 2013 at 3:40 AM
    bertrandleroy thank you for you reply. I am the systems admin also. The all in one guy in the company :). I found the issue. I created a new rule and the email started working.
    Jan 31, 2013 at 5:16 AM
    Fantastic. What was the problem?
    Jan 31, 2013 at 9:18 PM
    Under Sends an e-mail to a specific user, I didn't have (Other) check. Human error :)

    Jan 31, 2013 at 11:30 PM
    bertrandleroy where can I comment out the sign in that appear on my page. I don't want people to see the sign in.
    Feb 10, 2013 at 9:42 PM
    I think it's the user.cshtml template that you need to override.
    Apr 15, 2013 at 1:09 PM
    Tell me, please, there is a method for calculating fields using mathematical operators (+ - / * =)?

    {Content.Fields.Math.Result} = {Content.Fields.Math.Param1} + {Content.Fields.Math.Param2}
    Apr 16, 2013 at 1:45 AM
    @magisterium Create a new thread and you have a better chance of getting an answer
    Apr 17, 2013 at 7:04 AM
    Also, be more specific about what exactly you are trying to do.
    Apr 17, 2013 at 9:44 AM
    Edited Apr 17, 2013 at 9:46 AM
    BertrandLeRoy wrote:
    Also, be more specific about what exactly you are trying to do.
    My question relates to the functionality of the module Orchard.Rules
    1. Has created a custom form:
      • Result: (Numeric Field)
      • Param1: (Numeric Field)
      • Param2: (Numeric Field)
    2. Created a rule Send an e-mail:
      • {Content.Fields.Math.Result} = {Content.Fields.Math.Param1} + {Content.Fields.Math.Param2}
    This rule does not calculate mathematical expression. Perhaps this function is not provided in the module Orchard.Rules.
    I hope that this opportunity will appear in future versions of Orchard.
    Apr 22, 2013 at 6:57 AM
    It will never work this way. Tokens are not designed to build a language, just to provide access to environmental variables. What you can do is implement your own token that does what you want.
    Apr 22, 2013 at 7:27 AM
    It can be shown by the example?
    Apr 22, 2013 at 7:49 AM
    Sure: there are plenty of tokens that you can use as an example.
    Jun 27, 2013 at 2:52 PM
    Edited Jun 27, 2013 at 2:54 PM

    I currently tried to get the querystring
    e.g Text: {Request.QueryString:<Text>}

    but it doen't work.

    I have something like: Anfrage?Nummer=6594&Text=Text
    how can i get the strings from that {Request.QueryString:*}?

    thanks for your help
    Jun 28, 2013 at 12:09 AM
    This should work:
    Jun 28, 2013 at 3:44 PM
    No, unfortunately, that does not work

    is there another way to get the querystring?
    Jun 29, 2013 at 5:09 PM
    The tokens work, but if you're trying to use it as part of the Email's rule action, it won't work because although Custom Forms post back the form fields, the generated <form> tag does not include the querystring, so the tokens will not work in that scenario (as there are no querystring values).
    Sep 5, 2013 at 9:32 AM
    Edited Sep 5, 2013 at 10:07 AM
    Tell me, how do I get the sent message a link to the page source from where the form has been submitted? I've tried a lot of tokens, but did not get the result.

    <a href="{Site.BaseUrl}">{Site.SiteName}</a>
    Sep 6, 2013 at 1:20 AM
    Do you mean you received an email, but just empty strings instead of the actual values that the tokens should yield?
    Sep 6, 2013 at 9:25 AM
    Example of a link to the main page works well. I need the same thing, but to get a link to the source page. I need a universal form that would not be duplicated for each page. This requires tokens that return a link to the page and the title.

    URL token:
    Title token: Page1