Jump to content

zock1

Members
  • Posts

    4
  • Joined

  • Last visited

zock1's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. ok, a bit more information is needed. There is a submission datapage (dpA) that inserts and maintains records from a table. I need also that a record is added into another table every time a new record is added on dpA. So this other datapage (dpB) receives values from parameters from dpA, inserts the record and returns control to dpA. I wanted to "hide" dpB, the user does not need to see it, and even more important, does not have to press "submit" again (already done at dpA). That's why I explored the autosubmit. So all works well this way. The added functionality I wanted was to not add the related record in dpB when one of the passed parameter is empty. With the changes suggested, when the parameter is empty (else in check.length > 0), dpB becomes visible and I have to press the submit to return to dpA. which is not the behaviour I want. So I was expecting to have to add some code in the else part to cancel that form and return back to dpA: while dpB hidden, if parameter is empty then submit, else cancel, return to DPA Another option would be to trap the empty parameter in dpA before passing control to dpB, but I use the destination on the last part of the wizard and not sure how to put a condition there. Hope that's a bit more clearer ... Thanks in advance
  2. Thanks Mathilda I do receive the parameters in fields. I had to change the element from display only to text field. It does work when there is data coming from the parameter (check.length>0 is true), but if it's empty the datapage shows and sits there until I submit. Why is not cancelling?
  3. Hi all I have a simple datapage that submits a record to a table. values come from external parameters and it auto submits. This is the code I have at the HTML block: <script type="text/javascript"> if(document.getElementById("caspioform")) { document.getElementById("caspioform").style.display = 'none'; setTimeout('document.forms["caspioform"].submit()',1000); } </script> That works fine. What I want to do, if possible, is to add a a clause, if one of the receiving parameters is null, then do not submit the form (or cancel?). Any ideas? Thanks
×
×
  • Create New...