Jump to content

mann9a9

Member Since 01 Feb 2018
Offline  Last Active Feb 13 2018 12:44 PM
-----

Posts I've Made

In Topic: set default profile type on member signup

01 February 2018 - 08:50 AM

Hi I have the same issue I have resolved by the following in init() of Account.php form

//Wrap element to the div
        $this->addDisplayGroup(array($this->getElement('0_0_1')), 'ip-pro-type');
        $group = $this->getDisplayGroup('ip-pro-type');
        $group->setDecorators(array(
            'FormElements',
            array('HtmlTag', array('tag' => 'div','disabled'=>'disabled' ,'style'=>'display:none','class' =>
                'ip-pro-type-default'))
        ));
        if($this->getElement('0_0_1')) {
            $this->getElement('0_0_1')->setValue(1);
        }

1 is default profile type.




All the resources listed here are just for testing purpose and they shouldn't be used at any commercial environment without a valid license.
Those are for users who wants to try them before buy. Help the developer to build it better by purchasing them from original authors.