Jump to content

additionalfields with active type


Evgeny

Recommended Posts

How to show fields depending on the type of domain registration ($tldmyname_type), for an individual or for a company.

If the type of individual is selected, then display the fields for individuals and same if select company (show only fields for company): 

$tldmyname_type = array (
    'IND'            => 'Personal',
    'ORG'            => 'Company'
    );

$additionaldomainfields['.tld'][] = array('Name'    => 'Type', "LangVar" => "domain_type_register", 'Type' => 'dropdown', 'Options' => join($tldmyname_type,','), 'Required' => true);

$additionaldomainfields['.tld'][] = array('Name'    => 'LastName', "LangVar" => "domain_lastname", 'Type' => 'text', 'Size' => '20');
$additionaldomainfields['.tld'][] = array('Name'    => 'Birthday', "LangVar" => "domain_birthday", 'Type' => 'text', 'Size' => '10');
$additionaldomainfields['.tld'][] = array('Name'    => 'Passport', "LangVar" => "domain_passport_number", 'Type' => 'text', 'Size'    => '20');

$additionaldomainfields['.tld'][] = array('Name'    => '','Description'    => '<center><br/><b>For Company</b></center>');
$additionaldomainfields['.tld'][] = array('Name'    => 'Company_name', "LangVar" => "domain_company_name", 'Type' => 'text');
$additionaldomainfields['.tld'][] = array('Name'    => 'Company_id', "LangVar" => "domain_company_id", 'Type' => 'text');
 

This will also allow me to make required fields, since this is currently not possible and in general it will be more convenient.

Edited by Evgeny
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated