Skip to content

bitrix-library/bx-form-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bitrix custom form component

Component calling example for default template:

$APPLICATION->IncludeComponent(
    "custom:form",
    "",
    array(
        'IBLOCK_ID' => '1',
        'MAIL_EVENT' => 'FORM_SENDED',
        'RECAPTCHA_ENABLED' => 'N',
        'RECAPTCHA_PUBLIC_KEY' => 'GoogleRecaptchaPublicKey',
        'RECAPTCHA_PRIVATE_KEY' => 'GoogleRecaptchaPrivateKey',
        'ACTIVE' => 'Y',
        'TOKEN' => 'form001',
        'FORM_NAME' => 'Form 1',
        'PROPS' => array(
            'NAME', // type - string
            'EMAIL', // type - string
            'PHONE', // type - string
            'SELECT', // type - select
            'CHECKBOX', // type - string
            'DATE', // type - date
            'MESSAGE,TEXT', // type - html/text
            'DOCUMENT,FILE', // type - file
            'DOCUMENTS,FILES' // type - multiple files
        ),
    )
);

About

Bitrix custom form component

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages