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.
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.
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/
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?
also want to place an empty div between two of the formfields I can use for the custom validation
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?)