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.

How do I add more opt-in conditions for AWeber?

  1. It seems as though we can only use ONE opt-in condition for when a form is submitted...

    Thank you! :)

    Daniel

    Posted 11 years ago on Monday June 24, 2013 | Permalink
  2. David Peralty

    There currently isn't a way to add more opt-in conditions. You could, using PHP and pre-submission hooks check multiple conditions using your own custom PHP code and then if it passes them all, push a value of true to a hidden field which you would then use for the single condition we allow.

    Posted 11 years ago on Monday June 24, 2013 | Permalink
  3. Thank you for the reply! :)

    How do I do that?

    Which hooks would I be using?

    Thank you!

    Daniel

    Posted 11 years ago on Monday June 24, 2013 | Permalink
  4. Couldn't I create a conditional field where it would only Show when X and X meet perfectly?

    Than I can use that conditional field as the condition opt-in for AWeber?

    Do you see what I mean?

    Thank you! :)

    Daniel

    Posted 11 years ago on Monday June 24, 2013 | Permalink
  5. David Peralty

    I don't think so. The conditional logic on your form doesn't translate into your opt-in conditions. You could use http://www.gravityhelp.com/documentation/page/Gform_pre_submission to create a value in a hidden field that you test against though.

    Posted 11 years ago on Monday June 24, 2013 | Permalink
  6. The only thing that I can put in a hidden field is a parameter or default value.

    What exactly would the parameter be?

    Thank you!

    Daniel

    Posted 11 years ago on Tuesday June 25, 2013 | Permalink
  7. David Peralty

    You have to use PHP code to do what you are looking for. You can't just use our pre-built options, I'm sorry to say. Please read through the documentation. You might want to hire a developer to help you as you are looking to extend Gravity Forms in many ways.

    Posted 11 years ago on Tuesday June 25, 2013 | Permalink
  8. No worries.

    Also, you know how I am able to use more than one list in AWeber?

    What if I selected the same list twice and just gave them different opt-in conditions...

    Would you feel that might work?

    Thank you! :)

    Daniel

    Posted 11 years ago on Tuesday June 25, 2013 | Permalink
  9. David Peralty

    You could, but you might have to set-up many feeds, knowing your issues from previous interactions.

    Posted 11 years ago on Tuesday June 25, 2013 | Permalink
  10. *** In Regards to the PRE-Submission hook *** (http://www.gravityhelp.com/documentation/page/Gform_pre_submission)

    I'd like to do this on my own and not hire a programmer (as I feel a task like this is pretty doable for me).

    Basically the link that you sent me too - briefly explained a certain example:

    1 <?php
    2
    3 add_action("gform_pre_submission", "pre_submission_handler");
    4 function pre_submission_handler($form){
    5 $_POST["input_14"] = "new value for field 14";
    6 }
    7 ?>

    I'd like to use computer code to basically say "Grab labels and store them as labels" ...instead of storing them as values.

    I am sure there is a simple "computer term"...

    ...just like this example proposes "new value for field 14"

    Thank you!

    Daniel

    Posted 11 years ago on Monday July 1, 2013 | Permalink
  11. Anyone?

    Posted 11 years ago on Wednesday July 3, 2013 | Permalink
  12. David Peralty

    I really think with the countless customizations you want, you should hire a developer to work with you to extend what Gravity Forms does. Gravity Forms is working as expected, but you want more. We are limited on what we can do regarding custom code.

    Posted 11 years ago on Wednesday July 3, 2013 | Permalink
  13. Can you explain in details, why you meant by this:

    You could, using PHP and pre-submission hooks check multiple conditions using your own custom PHP code and then if it passes them all, push a value of true to a hidden field which you would then use for the single condition we allow.

    Thank You!

    Posted 11 years ago on Monday July 8, 2013 | Permalink
  14. David Peralty

    We have a hook - http://www.gravityhelp.com/documentation/page/Gform_pre_submission that would allow you to run whatever tests you need before moving to the stage where the submission would be signed up for your Aweber list. You could grab various field values, test them against what you are looking for, and then give another field a value based on your tests. This would allow you to create as many opt-in conditions as you want, as your Aweber would just test against the hidden field that has the final value.

    Posted 11 years ago on Monday July 8, 2013 | Permalink
  15. I understand that this hook allows for a form's values to be changed before any notifications are sent or any Entries are created.

    What do you mean by "running tests"?

    The example that the link provided was a simple "change of post variable" ...what does that mean?

    I know that I can do this, I just need more clarification!

    Thank you! :)

    Daniel

    Posted 11 years ago on Monday July 8, 2013 | Permalink
  16. David Peralty

    By running tests I mean setting up your own conditional logic system.

    Doing things like "if X is Y then hidden field value is NO" and "If X is Z then hidden field value is Yes"

    Then in your opt-in conditions, you could have if field TEST is Yes then opt-in.

    Posted 11 years ago on Monday July 8, 2013 | Permalink
  17. I understand now.

    So when would the hook come in?

    ...and would I change a post variable (like shown in the pre-hook link)
    ...or would I create something else?

    Thank you David!

    Posted 11 years ago on Monday July 8, 2013 | Permalink
  18. I feel I almost know what you're talking about.

    When you say "hidden value field" do you actually mean the literalry -- Hidden Field or any field that is in "Admin"?

    Also, the Hidden Field only allows for me to put the "Parameter name"...

    According to the pre-submission link you sent me -- it said to put "$form" (Form Object) The current form.) -- as the Parameter.

    So how would I put "Doing things like "if X is Y then hidden field value is NO" and "If X is Z then hidden field value is Yes""

    ...in computer language?

    Thank you!

    Posted 11 years ago on Tuesday July 9, 2013 | Permalink
  19. Can I have a response please?

    Thank You!

    Posted 11 years ago on Wednesday July 10, 2013 | Permalink
  20. David Peralty

    The hidden field is fine to do what you need. I am not going to be able to give you code to do this. If you aren't able to do the PHP code yourself, as I've said numerous times before, please hire a developer that can do this for you quickly and easily. Gravity Forms is working as it should and you are seeking customization. We can't spend any more support time on this issue.

    Posted 11 years ago on Wednesday July 10, 2013 | Permalink

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