This project is read-only.

Boolean and Enumeration Form field values for sending email via rule (1.5.1)

Topics: General
Oct 17, 2012 at 2:38 PM

Similar to another post but concerning other field types


<li> Contact name:  {Request.Form:SubscriberForm.Name.Value} </li>

<li> Email:  {Request.Form:SubscriberForm.Email.Value} </li>

<li> Newsletter:  {Request.Form:SubscriberForm.SubscribetoNewsletter.Value} </li>

<li> Message:  {Request.Form:SubscriberForm.Message.text} </li>

<li>Interest.SelectedValues: {Request.Form.SubscriberForm.Interest.SelectedValues} </li>


The SubscribetoNewsletter is boolean and returns "false" if not selected - but returns "true, false" if it is selected. I can live with this - but can anyone help me get it correct please ?

The Interest is an enumeration field and I have tried Value, Values,Text as well as what I think it should be - SelectedValues. but I cannot get any returned values at all.

The similar post resulted in a bug report I believe - but I think I am just wrong !!



Oct 17, 2012 at 4:49 PM

Request.Form tokens are just strings. Those are not field tokens.

Oct 17, 2012 at 5:28 PM

so Request.Form.SubscriberForm.Interest will return a string ?

I have tried Request.Form.SubscriberForm.Interest.Value, no joy

I am really not sure where to look on this, perhaps another clue please ?


Oct 17, 2012 at 5:44 PM

Look at the name of the form field from view source or from dev tools in your browser. That's what should be after the colon.

Oct 17, 2012 at 6:42 PM

aha - a typo after all that effort - used the colon and selectedvalues works fine

Now for the boolean using the designer:

your help is much appreciated, thankyou

SubscribetoNewsletter.Value seems to always be true but if checked it emails "True, false" and if unchecked then it sends "false". I can live with this but is there a better solution?


Oct 17, 2012 at 6:50 PM

Checkboxes are weird. Any reason why you're not using the field tokens?

Oct 17, 2012 at 7:08 PM

Only because I cannot find a reference to field tokens anywhere !

I will persist on this - any hints where to look would be appreciated

thanks, you are very helpful on this. as always :)



Oct 17, 2012 at 9:48 PM

There was a thread about them a few days ago.