This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

wkinne23341
wkinne23341

Hi All!

I have a basic contact form set up using ajax. if validation fails I would like to display to the users what failed. How I do this within October?

I am so used to Laravel/Vue that I am a bit lost here.

Thank You!

Pavel Chernov
wkinne23341
wkinne23341

Thanks for the reply!

Is there docs on how to build out the form with these extra features with the form builder? Or should I just manually do it?

Pavel Chernov
Pavel Chernov

Manually. But there is nothing complicated. If the backend is already set up, then all you need to do is add to form-header

data-request-validate

and add span blocks for each fields

<span data-validate-for="fieldName"></span>
pain-spark50564
pain-spark50564

Pavel Chernov said:

The documentation has examples for this https://octobercms.com/docs/ajax/extras#usage-example

How i hate when people answer like this ...

1-5 of 5

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.