PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

pre_submission no longer working

  1. vixvii
    Member

    I have code that used to work before updating to the latest version. Not sure what my previous version was but was about 3 - 4 updates ago.

    My code:

    http://pastie.org/2261577

    I have a hidden field with ID 101 and this no longer updates. If I create a test form with the EXACT code, then it works. I have also tried just adding $_POST["input_101"] = "uniqueID" just to try, but it doesn't execute this at all.

    Did anything change with the pre_submission? Everything that used to work suddenly misbehaves completely. Maybe it has to do with the way I coded?

    The form is on http://www.topweddingphotos.com/team-registration/

    Posted 10 years ago on Saturday July 23, 2011 | Permalink
  2. vixvii
    Member

    It doesn't matter what I select in input_99 (dropdown list, the first if statement always gets executed and (SAP FLL @ Sci-Bono 2011) is selected and the entries updated.

    BUT - I have now split the code into 2 sections. I am doing the UniqueID in pre_submission and the updating of the competitions in post_submission. Now suddenly the uniqueID is working! IF both are done in pre, it doesn't work.

    The competition counter still doesn't work in post, but the unique ID is working again. Something is very wrong here...

    Posted 10 years ago on Saturday July 23, 2011 | Permalink
  3. vixvii
    Member

    UPDATE : I copied the exact code to http://www.fllsa.org/team-registration/ which is my live site and here the Unique ID doesn't work. The results are very inconsistent and I really need a solution urgently. Thanks

    Posted 10 years ago on Monday July 25, 2011 | Permalink
  4. vixvii
    Member

    UPDATE : I made some changes on the code and also on the form itself. IT seems like I have some problems on the form. If I put the UniqueID hidden field at the bottom of the form, the code does not work - also, any new items I add doesn't show on the form. Moving the UniqueID field to the top of the form works perfectly. I guess this means I have a problem with the Form layout? I have tried the Meta Recovery Tool, but it doesn't fix the problem on the form. I have 104 fields on the form, so it is quite a mission troubleshooting this in the XML file - any suggestions?

    I also found the mistakes in my previous code I submitted - it looks like somewhere my code was overwritten with an older version and not GF - sorry!

    Posted 10 years ago on Monday July 25, 2011 | Permalink
  5. Before I close this issue, just to clarify everything is good? You figured out the issue, or at least it's not an issue with Gravity Forms?

    Posted 10 years ago on Monday July 25, 2011 | Permalink
  6. vixvii
    Member

    Carl - I still have the issue with the form. You can close this topic and I will open a new discussion as it isn't related to this issue. Thanks!

    Posted 10 years ago on Monday July 25, 2011 | Permalink

This topic has been resolved and has been closed to new replies.