On May 3, 11:30 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Looking at the generated source code of exiting forms in the admin i
> have extracted the following code to wrap my own forms in.  This is
> what I am using for the select boxes...as an example

Hmm.. why are you extracting the HTML at all?  The form is generated
in a specific way; dynamically using formtools.  If you are not using
this technology you should just build the forms by hand -- but you'd
want to have a compelling reason to. In 4.0 you would generally modify
the metadata for the object instead of building your own edit
handler.  Did you build this custom object or are you just modifying
it?  Why are you trying to change the HTML markup directly?

> The same code works fine for the input type form fields and it
> displays for the dropdowns but it is not positioning correctly for
> select boxes.

The drop down you have in the screenshot indicates a template choice
ie. a webskin formtool type.  If this is true, then a template choice
can *never* be empty, and so should not require any validation.

> Also on the same note, is it not possible to make a rich text area
> using a html editor like tinyMCE a required field?

Not using the dynamically generated edit handler.  You would have to
do this server side by building your own custom edit handler.  I'm not
sure I see any reason for you to be modifying the edit code at all.
Is there any specific reason you are not just updating the formtool
metadata?

> Even modifying the exiting dmNews.cfm template to make the content
> template select box required has the same outcome so i dont think its
> anything i am doing.

If this is a webskin choice then it is a required field by default..
ie you always have something selected.  Adding required validation is
just confusing matters.  You'll note the dmNews content item doesn't
have validation and works as required.

That said, it sounds simply like a CSS issue with respect to the error
class that displays validation errors in proximity to a drop down.  If
so, feel free to report this complete with screenshot.  But again, I
can't see why its needed in this context at all.

Best regards,

-- geoff
http://www.daemon.com.au/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to