code where to place it
Posted: 2024-10-05 06:46
Hello
I have this code for example I think it can work but I don't know where to put it, where to place it..
or for ex
I have this code for example I think it can work but I don't know where to put it, where to place it..
Code: Select all
<?php
function GES_SUIVI_INDIVIDUEL($selectedID, $memberInfo,
&$html, &$args) {
// Ajouter un div contenant un séparateur avant certains champs
$html = str_replace('<div class="form-group" id="NOM_ELEVE">', '<div style="border-top: 1px solid #ccc; margin-top: 10px;"></div><div class="form-group" id="NOM_ELEVE">', $html);
}
?>
Code: Select all
function validate_my_form($options, $memberInfo, &$args)
{
if(empty($args['my_field']))
{
$args['__form_valid'] = false;
$args['__form_msg'] = 'Le champ "My Field" est obligatoire.';
}
}