danielstoetter
Forum Replies Created
-
Great! It works perfectly!
Thanks for the amazing support!
DanielThank you very much for this code. It works! If I need it for multiple forms, do I have to enter all form IDs with comma? Or would it be not also OK, to have a code for all forms?
Thanks!
DanielGreat! So fast! Amazing support! And it works perfectly!
Thank you very much!
In case there is also a way to make an inline-validation, would be great, but if not, it is great like this!
Thanks!
DanielThank you Adam, for the detailed explanation. Actually I already tried this. But now I think I figured out what could be the problem. I have 2 text fields and I want to validate one of them, but I hide one or the other with conditional logic by selecting a radio button. With this code the field I want to validate will be validated even if it is hidden by conditional logic. I think that’s why I cannot submit the form if I just fill the not validating field. The other will be hidden, but still trying to validate. Hope I can explain myself correctly 🙂
Can this be the problem? And is there a solution to that?
Thanks
DanielHi, I still have a problem. I use at the moment the code for one form only, but I have 2 custom text fields, but only one should be validated. It means, now my field is validating but if I use one more text field in the form, it is trying to validate also this one and the form cannot be submitted. Can you give me the solution for that? I also tried with the other code for multiple forms and fields, but I cannot figure out, how it can be solved.
Thanks
DanielHi! I have to come back to this once more. I work with this code and it is working great. But now I tried to send data to Make with the webhook and realized, that the data in the hidden field will not be send with the webhook, instead {cookie_val1} is sent as the value. Also in the entries I can only see {cookie_val1}, not the real value. The hidden field is correctly filled and as I was sending data with another integration it was working, but with the webhook not.
Is there any idea for a solution to this?
Thank you!
DanielNow I realized that with this all my other forms are trying to validate and I cannot submit them anymore. Is there a way to solve this, so that only the one specific form will validate the specific field?
Thank you!
DanielThank you! It works!
Is there also a possibility to validate inline, as the other fields do?
And to have it work only for one form, do I have to set form ID like this $form_ids = array( 123 ); ?
If I want to set it for multiple forms with other field names and values, for example one form with text-1 field and validation value “MyValue1” and another form with text-2 field and validation value “MyValue2”, how would be the code?
Thank you very much for the great support!
DanielThank you very much! This works perfectly now! Hope the “dirtyness” is not a problem as long as it works.
Again: Great support!
Thanks!
Thank you very much! This is an amazing support!
I already tested this before and I did it now again. But I could not find any plugin or theme causing this. And I have no param from the reserved ones. What I found out is, that if I have a post (which I didn’t have before), then it shows the list of posts when I use mydomain.com/?myparam1=123. So, it seems that WordPress wants to show the posts like in a blog when I use the registered parameter on the front page. Maybe this is a hint. My Parameter is “ref_id”.
Because this is a site in development I don’t want to post the link here. But if I can contact you in a different way you could look at it directly or I can even give you login permission.
Thanks
DanielUnfortunately my hosting support did not help. They say it is probably not an issue on the server. Any other ideas?
Anyhow: Thanks for your amazing support! This was so helpful!
DanielThis works perfectly for me! Thank you very much! I just encountered one thing: If a parameter is registered with this code, and I want to use the parameter in the home page, it will show page not found. Means when I open domain.com it shows the home page, but domain.com/?param1=123 will not show the page. This happens only on the home page. Other pages like domain.com/test-page/?param1=123 work fine. If you have a solution for this, would be great.
Thanks
DanielThank you very much! This works great! I have one more question: In case I want to use multiple cookies and parameters for different forms, For example like: ?param1=123 and cookie will be stored and hidden field of form1 will be filled, and ?param2=123 and cookie will be stored and hidden field of the form2 will be filled. Do I have to create a mu-plugin for every param/cookie or do I have to edit this one. If yes, how?
Thanks again for this great support!
DanielThank you! This works great. Is there a possibility to edit the code, so that the hidden field is filled with a url parameter, if the parameter exists, and else with the cookie. For example I open a page like this: http://www.test.com/page/?param=123 The hidden field will be filled with 123. The parameter also will be stored as a cookie. Then if you browse other pages and come back to http://www.test.com/page/, the field is filled with the cookie. I just realized, that when I enter the page first time, the hidden field will not be filled with the cookie value, only after reloading the page or coming back. So I would have to use 2 hidden fields, one for the cookie and one for the parameter. Is there a way to change the code to do it for the same hidden field? Thank you!