Documentation

isFormNote

bool
CFormOutput::isFormNote(
);

The method checks the condition for "available text notes". Non-static method.

Method parameters

No parameters.

Returned value

If text notes are available, returns true or false otherwise.

Examples of use

<?if($FORM->isFormNote()):?>Reply: <?=$FORM->ShowFormNote()?><?endif?>
\\ a way to check if the web form was sent and then print the message about successful send-off 
<? if($FORM->isFormNote()) //i. e. if the message is available, it must be displayed and the web from was sent
{
echo $FORM->ShowFormNote();?> //print the message: "Your request is sent successfully"
 }
else //otherwise the web form itself is displayed
{

web form template
;}
?>

See Also

CFormOutput Class
CFormOutput::ShowFormNote

© «Bitrix24», 2001-2024