Quantcast
Viewing latest article 12
Browse Latest Browse All 46

0004024: impossible to add some values with hooks

Hi,

In my case, I have a registration process that should give usergroups to my user depending on the value of some fields. The possible groups are only a subset of the available groups because I have an "admin" group that FE users cannot obtain, … so I can't use the "userGroupSelection" field. I have to affect the group before the "confirmation" or after the "save", but before the confirmation I can't add a field (in the hidden fields list) that was not in the original form (or I didn't find how) and after the save, the data is already saved so any change is useless, the only thing I can do is re-write the user data after the save by changing values directly in the DB, but it's not very good.

The best would be to execute the "beforeConfirmCreate" hook before building the hidden fields list and take care of possible fields added/modified/removed by the hook.

It would also be very usefull to be able to give a specific comma-separated list of group ids, or a list of excluded groups, for the userGroupSelection" field.

I'm very short in time and skills to make a patch, but if I can in the future, I'll try.

BTW, thank you very much for your work, this extension is great.

Viewing latest article 12
Browse Latest Browse All 46

Trending Articles