Loading...
Skip navigation
Please note that this documentation is for the most recent version of this extension. It may not be relevant for older versions. Related documentation can be found in the documentation directory of the extension.

Manage banking details at registration

If you want to display bank data fields during registration or edit profile only if direct debit is selected, use JavaScript as follows:

jQuery(function() {
    var accountingTypeSelect = jQuery('#registration_accounting_type');
    if(accountingTypeSelect.length > 0) {
        switchUserAccountingType(accountingTypeSelect.val());
        accountingTypeSelect.on('change', function() {
            switchUserAccountingType(jQuery(this).val());
        });
    }
});

function switchUserAccountingType(accountingType) {
    if(accountingType === 'accounting') {
        jQuery('#registration_bank_account_owner_name').parent().hide();
        jQuery('#registration_bank_account_bank_name').parent().hide();
        jQuery('#registration_bank_account_bic').parent().hide();
        jQuery('#registration_bank_account_iban').parent().hide();
        jQuery('#profile_bank_account_owner_name').parent().hide();
        jQuery('#profile_bank_account_bank_name').parent().hide();
        jQuery('#profile_bank_account_bic').parent().hide();
        jQuery('#profile_bank_account_iban').parent().hide();
    }
    else {
        jQuery('#registration_bank_account_owner_name').parent().show();
        jQuery('#registration_bank_account_bank_name').parent().show();
        jQuery('#registration_bank_account_bic').parent().show();
        jQuery('#registration_bank_account_iban').parent().show();
        jQuery('#profile_bank_account_owner_name').parent().show();
        jQuery('#profile_bank_account_bank_name').parent().show();
        jQuery('#profile_bank_account_bic').parent().show();
        jQuery('#profile_bank_account_iban').parent().show();
    }
}

Contact request

You can contact us at any time

Stop! Playing in the meantime?
Stop! Playing in the meantime?
Stop! Playing in the meantime?

Stop! Playing in the meantime?

Break the highscore

Press Start
Contact request
Screenreader label
Security question
8FY_________K5U______
__6____Q____R_B___R9U
__6___ZQW___52N______
__1____P______K___DLS
__C_________EDC______