1

I'm new in drupal 7, and I have to work on an existing project

i want to display a validation message of a webform.

In my custom node.tpl i have a webform with a unique validation on the email, but it's don't show any error message.

I think it was stored in "$messages", but nope.

How can i do this ?

Thanks.

1 Answer 1

2

Wow that was easy, but so hard to fine ...

so here is my solution :

<ul style="color:red;">
<?php
foreach (form_get_errors() as $key => $value) {
?>
    <li>
        <?= $value ?>
    </li>
<?php
}

?>
</ul>
<?php
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.