... |
... |
@@ -101,8
+101,11 @@ |
101 |
101 |
{{id name="sec_user_variables" /}} |
102 |
102 |
=== User variables {{version major="6" minor="4" patch="0"/}} === |
103 |
103 |
|
104 |
|
-User variables may be used [[actions>>doc:Formcycle.UserInterface.MyForms.WorkflowProcessing.Actions.WebHome]], [[templates>>doc:Formcycle.UserInterface.FilesAndTemplates.WebHome]], [[data base queries>>Formcycle.UserInterface.Data.DBQueries.WebHome]] or directly in [[form elements>>Formcycle.FormDesigner.FormElements.WebHome]] for prefilling the form. |
|
104 |
+{{id name="fig_prefill_user_variables"/}} |
|
105 |
+{{figure image="prefill_user_variables_en.png"}}Using user variables to prefill form fields with data of the logged in user.{{/figure}} |
105 |
105 |
|
|
107 |
+User variables may be used [[actions>>doc:Formcycle.UserInterface.MyForms.WorkflowProcessing.Actions.WebHome]], [[templates>>doc:Formcycle.UserInterface.FilesAndTemplates.WebHome]], [[data base queries>>Formcycle.UserInterface.Data.DBQueries.WebHome]] or directly in [[form elements>>Formcycle.FormDesigner.FormElements.WebHome]] for prefilling the form (see [[figure>>||anchor="fig_prefill_user_variables"]]). |
|
108 |
+ |
106 |
106 |
{{panel monospace="true" title="Syntax"}} |
107 |
107 |
[%$<user object>.<attribute>%] |
108 |
108 |
{{/panel}} |
... |
... |
@@ -109,7
+109,7 @@ |
109 |
109 |
|
110 |
110 |
There are three user objects available which can be used to access information about the user. If a user variable is being used without any attributes, all user information will be returned in [[JSON>>https://de.wikipedia.org/wiki/JavaScript_Object_Notation]] format. |
111 |
111 |
|
112 |
|
-For sensible use of the user variables it is necessary to enable [[form login>>doc:Formcycle.UserInterface.MyForms.Access.WebHome]]. If this is not configured the user object will be set to an anonymous user. |
|
115 |
+For sensible use of the user variables it is necessary to enable [[form login>>doc:Formcycle.UserInterface.MyForms.Access.WebHome||anchor="form_login"]]. If this is not configured the user object will be set to an anonymous user. |
113 |
113 |
|
114 |
114 |
|
115 |
115 |
==== User objects ==== |