Jump to content

Best approach if I want to make some fields required?


martinluff
 Share

Recommended Posts

I think it's for client – again, either just tell them or page::save() beforeHook, that will check for existence of some fields and if left blank, will halt save() routine and return to edit page with the top message set [that should be possible]. However, I don't think there is inline validation [i.e. erroneous fields red or something]

Link to comment
Share on other sites

This is the same situation as my last post. This was taken out last minute. Though I believe the implementation for this actually still is in place (just disabled). There are a few reasons for this. Changing a pages template to one that had required fields that didn't exist in the previous template resulted in lots of ugly error messages. Easy enough to fix, but I figured this was non-crucial and something I could get back to later. The other part was that I hadn't yet implemented the required option for some of the more complex fieldtypes, and wanted to put more time into it. Lastly, required fields drive me nuts (I have a strange workflow). But I recognize the need and you can count on this one coming back.

Link to comment
Share on other sites

@adamkiss - yes makes sense. I can also just add a little JS to alert users or do validation if leaving a field empty is likely to cause issues...

@ryan, likewise, makes a lot of sense. Looking forward to seeing how the system blossoms as you decide how to implement (or for that matter leave out) features from PW1... :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...