We need to set for our AA default values on user creation. Like:
company = Evil corp.
country = Franconia
and some other AD fields.
From microfocus support (#00779210) i got this information:
Instead of editing the desired field on the page, you would use a form load handler. This is done using the form properties button; near the bottom of the page customization. Your handler would run a custom java script. The script needs only one line: draApi-fieldValues['additionalAttributes.draVirtualAttribute'] . In the case AdditionalAttributes.draVirtualAttribute os the exact attribute name linked to a field on the page. You can get the exact attribute name of a feild by using the edit button. This will allow you to see the exact name / format for the attribute. That same test would replace everything after the [' characters in the above example. Lastly the Help Button within the add script section of a form load handler or customer handler on a page contains some usefull details as well.
In general the format of the JS would be something like draApi-fieldValues['compnay'] . If you were using a Virtual attribute you would need to use the additionalAttributes.<Virtual attribute name> . For all other attributes, it would be the name of the attribute displayed when searching for the attribute in the customization of a field. This Java Script would need to be a Form Load handler and not a field based handler. This form load handler would trigger as the web form is accessed by the end user.
Does anyone have already set up this kind of Java Script, and can share an example?