Documentation

ShowRequired

string
CFormOutput::ShowRequired(
);

The method shows the checkmark "required field" - *. When displaying title to the field via the CFormOutput::ShowInputCaption method, the checkmark is inserted automatically. Non-static method.

Method parameters

No parameters.

Returned value

HTML code for the checkmark is returned

Examples of use

First required question <?=$FORM->ShowRequired()?>:<?=$FORM->ShowInput('REQ_FIELD_1')?><br />
<?=$FORM->ShowInputCaption('REQ_FIELD_2'):<?=$FORM->ShowInput('REQ_FIELD_2')?><br />

See Also

  • CFormOutput Class
  • CFormOutput::ShowInput
  • CFormOutput::ShowInputCaption


  • © «Bitrix24», 2001-2024
    Up