It seems as though we can only use ONE opt-in condition for when a form is submitted...
Thank you! :)
Daniel
It seems as though we can only use ONE opt-in condition for when a form is submitted...
Thank you! :)
Daniel
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.
Thank you for the reply! :)
How do I do that?
Which hooks would I be using?
Thank you!
Daniel
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
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.
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
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.
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
You could, but you might have to set-up many feeds, knowing your issues from previous interactions.
*** 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
Anyone?
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.
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!
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.
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
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.
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!
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!
Can I have a response please?
Thank You!
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.