6 years ago
Topic

Hello Seblod community!

Help me please with this question: How to get some field value from the form in AfterStore plagin?

I want to change the usergroup according to a selected field by user in the form. For example, the user selects in SimpleSelect field "Yes" or "No" value,

If he has selected "Yes" then AfterStore plagin is changing the usergroup. 

So, how does the AfterStore plagin  know about the selected field "Yes"? 

In AfterStore plagin I was trying to figure out it like this:

if ($my_simple_select_field == "Yes") { change usergroup }

And like this:

if ($cck->getValue('my_simple_select_field') == "Yes") { change usergroup }

Or like this:

if ($user->my_simple_select_field == "Yes") { change usergroup }

But it all dont work.... thanks for any suggestions!

Best regards, Konstantin

Get a VIP membership
4229 Posts
Kadministrator
6 years ago
0
Level 1

Get a VIP membership