Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Fieldset Validation (Required* Javascript Popup)
  • Ok if you've noticed when you mark fields as required, and click submit, it doesn't reload the page. It shows a javascript message popup by the input bar they left blank that was required.
    How do you style that popup? Right now, FuelPHP has their default icon and quote and whatnot.. but I want to know how to style it so it looks more like my site and matches...
    I dont want to get rid of it because it's really handy.

    If someone could help me out. I can't seem to find the template they are using. I looked in the form.php and I still can't find it. And I can't view page source because it's not open by default..

    EDIT
    The weird thing is is that I dont know how it's doing that when I am not even including any of their bootstrap.js files or anything...
  • HarroHarro
    Accepted Answer
    It's not a javascript popup, it's HTML5 client-side validation, see (for example) http://css.dzone.com/articles/html5-form-validation-style. The Fieldset by default only uses the 'required' attribute.
  • Well what is making the popup come up? They have their background colors colored... not popups.. how do I get those to stop and just make the textbox red?
    It has to be doing something with FuelPHP..
  • The browser does, it's part of the HTML5 specification. See http://blog.oldworld.fr/index.php?post/2010/11/17/HTML5-Forms-Validation-in-Firefox-4 for a piece about firefox.

    The DZone articles describe how you could style them, I thought that that was your initial question?
  • Ahhh ok. :P It shows you how to style the input boxes, but not the popups, but that's ok! I'll just get rid of them. They're ugly xD

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion