Hello,
in the save user action is possible to assign a user group according to a switch?
Example:
I have a radio box with a switch action : 1 and 2.
If 1 I need to assign user group 10, if 2 assign user group 11.
I see the shortcode:
Groups ids provider
{value:[10]}
but how to set the if status?
Thanks
in the save user action is possible to assign a user group according to a switch?
Example:
I have a radio box with a switch action : 1 and 2.
If 1 I need to assign user group 10, if 2 assign user group 11.
I see the shortcode:
Groups ids provider
{value:[10]}
but how to set the if status?
Thanks
Hello vismay,
I'm not a Chrono professional, but after checking your new post, I think that the following links may help:
How can I add a User to a User Group?
P.S: I'm just an automated service😉
I'm not a Chrono professional, but after checking your new post, I think that the following links may help:
How can I add a User to a User Group?
P.S: I'm just an automated service😉
Hi vismay,
Drag a switch action above the save user, then set the "data provider" of the switch to {data:radio_name} then set the values as following:
Best regards,
Max
Drag a switch action above the save user, then set the "data provider" of the switch to {data:radio_name} then set the values as following:
1:[10]
2:[11]
Best regards,
Max
Sounds good!
I've solved with a custom database query.
But this solution it's lighter.
I will try...
I've solved with a custom database query.
But this solution it's lighter.
I will try...
...ok, and then in the save user action:
Groups ids provider: {value:{var:name_of_switch_action}} ?
Groups ids provider: {value:{var:name_of_switch_action}} ?
Hi Vismay,
No, in the "Groups id" provider you need to call the switch function: {fn:switch_fn_name}
Because here the switch will run and return the value directly, unless you enable the "return result as var" setting.
Best regards,
Max
No, in the "Groups id" provider you need to call the switch function: {fn:switch_fn_name}
Because here the switch will run and return the value directly, unless you enable the "return result as var" setting.
Best regards,
Max
This topic is locked and no more replies can be posted.
