You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to access the email address of a user[s] based on the username in a struct field where the field type is user.
The ultimate aim is to be able to use the email address of a user identified in the struct data of a page in the action mail line of a bureaucracy form definition: e.g. it might take the formaction mail {{schemaName.username.email}}
When a form on a page is completed I'd like to send the resulting information / notification to a person identified in the pages struct data by email.
If its not already possible to do this then one option would be to extend the syntax of the struct value output from {{schema.fieldname}} to {{schema.fieldname.extendedProperty}} to allow access to the $USERINFO name/mail/grps or $INFO values eg {{documentUsers.author.mail}}
or set an email field in the schema to automatically populate with the email address of a linked user field in the same schema so you could use {{documentUsers.authorEMail}}
Bureaucracy is one of the wider used forms and as struct also seems to be a defacto structured data plugin for Dokuwiki now it would seem that a feature like this could be used widely.