Requiring a field in a form

2 messages Options
Embed this post
Permalink
millisaeubanks

Requiring a field in a form

Reply Threaded More More options
Print post
Permalink
I am evaluating the Ephox editor to see if it is going to meet my company's needs for a simple form tool.  So far everything I see is great.  The only thing that I don't see is a way to mark a field as required.  I don't necessarily want to validate the information that is entered, just check to make sure that certain fields are not left blank.  Does anyone know if Ephox can do this?  Can this functionality be added?  Has anyone added this functionality before?

Thanks for your help,
Millisa
Just, Dylan

Re: Requiring a field in a form

Reply Threaded More More options
Print post
Permalink
> I am evaluating the Ephox editor to see if it is going to meet my
company's
> needs for a simple form tool.  So far everything I see is great.  The
only
> thing that I don't see is a way to mark a field as required.  I don't
> necessarily want to validate the information that is entered, just
check to
> make sure that certain fields are not left blank.  Does anyone know if
Ephox
> can do this?  Can this functionality be added?  Has anyone added this
> functionality before?

Sorry, we don't have this functionality at the moment.

It would be difficult to implement this generically for all customers,
and even if we did, we could really only implement the client-side
javascript validation - server side validation is very specific to an
application.

That said, it would be possible to create an EditLive! plugin to add
javascript validation.

I'm thinking of a custom menu item on the right-click menu called "Set
field required" or "Set field optional". When clicked, the code would
find the form that the field belongs to and manipulate the onsubmit
attribute to include or exclude the field in the validation routine. You
would also need a "GenericEnabledFilter" to only enable this menu item
in a form field.

This is something a customer could create with our java-based Advanced
APIs, or potentially we could create for you, as a professional services
engagement. Please let us know if you're interested in either of these
options.

Kind regards,

Dylan Just
Software Engineer
www.ephox.com
_______________________________________________
[hidden email]
List instructions at http://liveworks.ephox.com/mailing-list/