Discussion:
[TYPO3-english] Powermail conditions
Jan Bednarik
2011-09-01 20:59:41 UTC
Permalink
Hi all,

is powermail_cond compatible with 4.5.5? I've installed it, but I can't
add condition or rule from within IRRE of Powermail.

However, I can create condition manually from List view, which is OK.

What I'd like to achive is to have 2 radio buttons with 1st one selected
by default and when the second one was selected, a part of a form would
be shown.

What I don't know how to do is

1) How to define that one of the radio buttons should be selected by default

2) How to implicitly hide a fieldgroup and show it when a radio button
is selected

I used checkbox, which kinda works, but the fieldset has to be shown at
first, I didn't find how to make it disappear by default (I guess I
could use CSS and class).

If you're curious, I'm creating an e-shop using wt_cart and for the cart
form I want users to be able to select Personal/Company order and for
Company I want to show some special fields, but default has to be Personal.

Thanks for hints

Jan
Michael Cannon
2011-09-02 05:37:39 UTC
Permalink
Jan,

For setting the default for radio or checkbox, you use the values format
`Label | value | *`.

More information under `Fields: Add radio button` at
http://typo3.org/documentation/document-library/extension-manuals/powermail/1.6.4/view/1/4/#id2314171
.

Example
Red
Blue|blue
Purple|purple|*
Black

Purple will be checked by default.


On creating conditions, frankly, it's a bit of a pain to do. You need to
create a rule and condition for each state you want watched. Also, this only
works using powermail_cond with all of the form on one page. I don't think
multi page is supported.

I strongly recommend paying more attention to the screenshots at
http://typo3.org/documentation/document-library/extension-manuals/powermail_cond/1.0.2/view/1/14/to
see how you have an operation you want to perform and then the rule to
enact that operation.

For you, since you want the Company fieldgroup to show up when something is
checked, then you'll need at least two conditions and two rules.

One condition for unhiding company information when X is checked. Another
condition for hiding company information when Y is checked.


--
Michael Cannon
President, Aihrus
Taiwan +886 (0)916 526 059
US +1 (617) 539-6072

Over 10 Years of Professional TYPO3 Support @ http://aihr.us
Jan Bednarik
2011-09-02 19:17:54 UTC
Permalink
Thanks, it works!

Jan
Post by Michael Cannon
Jan,
For setting the default for radio or checkbox, you use the values format
`Label | value | *`.
More information under `Fields: Add radio button` at
http://typo3.org/documentation/document-library/extension-manuals/powermail/1.6.4/view/1/4/#id2314171
.
Example
Red
Blue|blue
Purple|purple|*
Black
Purple will be checked by default.
On creating conditions, frankly, it's a bit of a pain to do. You need to
create a rule and condition for each state you want watched. Also, this only
works using powermail_cond with all of the form on one page. I don't think
multi page is supported.
I strongly recommend paying more attention to the screenshots at
http://typo3.org/documentation/document-library/extension-manuals/powermail_cond/1.0.2/view/1/14/to
see how you have an operation you want to perform and then the rule to
enact that operation.
For you, since you want the Company fieldgroup to show up when something is
checked, then you'll need at least two conditions and two rules.
One condition for unhiding company information when X is checked. Another
condition for hiding company information when Y is checked.
--
Michael Cannon
President, Aihrus
Taiwan +886 (0)916 526 059
US +1 (617) 539-6072
Loading...