1970 Posts in 1275 Topics by 607 members
|Go to End|
6 September 2010 at 1:35pm
I've been working on a form that uses validation from our internal systems. To get it running I statically coded it and now I'd like to build it using the SS Form object.
There's two things I'm still trying to work out how to do:
new TextField('ValuationNumber', 'Valuation Number', '' ),
- I want to be able to place an empty DIV between two of the formfields which I can populate with dynamic information.
I'm guessing that these are both possible but after wading about the documentation and forums I still can't work out how I'm supposed to do it.
Any suggestions would be greatly appreciated.
6 September 2010 at 7:17pm
The form field API doesn't support adding events. I recommend you use jQuery to add event handlers to your form eg http://api.jquery.com/keyup/
8 September 2010 at 1:52pm
Thanks Will - adding this works well:
I also want to place an empty div between two of the formfields I can use for the custom validation. I know I can use a Read Only field to place a span but this will require DHTML after the load to make it invisible. Is there a tidier way?
8 September 2010 at 6:23pm
also want to place an empty div between two of the formfields I can use for the custom validation
13 September 2010 at 11:00am
To append the a new div called "valuationValidation" after the div "ValuationNumber" I used the following code:
I ended up using the "jQuery" prefix instead of "$" as their seemed to be a conflict (with Prototype?)
|Go to Top|