i added the below code to qa-page-register.php
when user check the I am a lawyer checkbox must enter his Lawnumber, and that works so far
how to get the entered Lawnumber automatically in profile
$lawyer=qa_post_text('lawyer');
$lawnumber=qa_post_text('lawnumber');
if($lawyer == "1" && $lawnumber == "")
$errors['lawnumber']='Lawnumber must not be empty.';
'lawyer' => array(
'type' => 'checkbox',
'label' => 'I am a lawyer',
'tags' => 'NAME="lawyer" ID="lawyer"',
'value' => @$lawyer ? true : false,
'error' => qa_html(@$errors['lawyer']),
),
'lawnumber' => array(
'type' => 'text',
'label' => 'Lawnumber',
'tags' => 'NAME="" ID=""',
'value' => '',
'error' => qa_html(@$errors['lawnumber']),
),
After Register