Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

If field has changed


Go to End


1089 Views

Avatar
UncleCheese

Forum Moderator, 4102 Posts

9 September 2008 at 3:48am

Any way to check on write() if a specific formfield has been changed? I'd rather not loop through this block of logic every time if I don't have to.

I suppose one way is to check $this->Field before parent::write() and then check it after parent::write() ??

But that's a long shot...