Results 1 to 10 of 11

Thread: SimpleFormController Issues

Threaded View

  1. #1
    Join Date
    Dec 2008
    Posts
    6

    Default SimpleFormController Issues

    Forgive me if this has been asked before, but I have googled, and searched this forum and have yet to find a solution to my problem.

    I have a form built off of the SimpleFormController. What I'd like is to have the form prepopulate, and then the user can either press the "next" button which does a javascript:document.mycommand.submit() OR they can click another button which also does document.mycommand.submit(), but also sets an form element called addNew to true. If this element is submitted with the value true, I'd like the controller to save the form command object to the database and then return a new blank form.

    I can get it to save to the database, but it will not load a new form. I've checked to make sure the element is being set. The only other thing I can think of is to override the SimpleFormController's isFormSubmission, but I've heard there are issue with that.

    The form also has an element that when set will load from the database a specific object based on id.

    Any advice is welcome. Code is attached.
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •