$( document ).ready(function() { $('#np-Bankverbindung').val([[!get_iban]]); });
<?php // initialize output; $output = true; // get the current user name $extended = $modx->user->get('extended'); $output ="'IBAN: '". $extended['iban']; return $output;
This question has been answered by BobRay. See the first response.
$extended = $modx->user->Profile->get('extended');
$profile = $modx->user->getOne('Profile'); if ($profile) { $extended = $profile->get('extended'); } else { $modx->log(modX::LOG_LEVEL_ERROR, 'could not get user profile'); }