Documentation

isFormImage

bool
CFormOutput::isFormImage(
);

The method checks the condition "is an image attached to the web form". Non-static method.

Method parameters

No parameters.

Returned value

If the web form has an attached image, returns true or false otherwise.

Examples use

<?if($FORM->isFormImage()):?>
<?=$FORM->ShowFormImage()?>
<?else:?>
<?=CFile::ShowImage("/myimages/form_default.jpg")?>
<?endif?>

See Also

  • CFormOutput Class
  • CFormOutput::ShowFormImage


  • © «Bitrix24», 2001-2024
    Up