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.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Can I have a validator for the pop-up form


Reply


3 Posts   931 Views

Avatar
HilaryB

Community Member, 11 Posts

21 January 2010 at 5:16am

Hi

Generally I think DataObjectManager is a great adition to Silverstripe and have used it a number of times now.

I have recently used it to manage sets of linked sitetreepages and use the SimpleTreeDropdownField which works beautifully. However I would like to make this a required field. I can't see any way to add a validator for this form. I would really appreciate it if someone could tell me if it is possible and if so how?

Avatar
UncleCheese

Forum Moderator, 4096 Posts

21 January 2010 at 7:05am

Unfortunately, no. That's a major limitation of the module right now. There were too many javascript conflicts, and even when they were working together, the page load time was ridiculous, so I ended up just disabling validation. Once Silverstripe drops jsparty in 2.4, it will be much easier to implement.

Avatar
HilaryB

Community Member, 11 Posts

21 January 2010 at 10:25pm

Thank you for replying uncle Cheese. I'll look forwards to the arrival of 2.4