saralanda
Forum Replies Created
-
Forum: Plugins
In reply to: [Calculated Fields Form] Save text area line breakshttps://tulumcharters.com/test1?wpf24098_76=This%0Ais%0Aexample
- This reply was modified 3 weeks, 6 days ago by saralanda.
Forum: Plugins
In reply to: [Calculated Fields Form] Save text area line breaksThank you so much for your quick response. Unfortunately, the code is still ignoring the line breaks. This is what I have:
(function(){
var result = ”;
result = getURLParameter(‘param1’, ”);result = result.replace(/\\n/g, ‘<br>’);
jQuery(‘.notes’).html(result);
return result;
})();Where param1 = This%0Ais%0Aexample
- This reply was modified 3 weeks, 6 days ago by saralanda.
Forum: Plugins
In reply to: [Calculated Fields Form] Save text area line breaksThank you! This works really well.
One last question. When I use the getURLParameter(param1) in another calculator to get the parameter with line breaks, it ignores them. I tried the following :
(function(){
var result = ”;
result = getURLParameter(‘param1’, ”);
result = result.replace(/%0A/g, ‘<br>’);
jQuery(‘.notes’).html(result);
return result;
})();Forum: Plugins
In reply to: [Calculated Fields Form] Save text area line breaksI am creating a url whose parameters are defined by user input. One of these parameters is defined by whatever is written in the textarea field. I want to identify the line breaks, then replace them with something that is url-friendly (XXX), then add that to my url as a parameter.
For example:
Textarea1 input: This is an example <br>Of what I would like to get<br>And store
Calculation to replace <br> with XXX
Calculated field1: myurl.com/?textarea=This is an example XXX Of what I would like to get XXX And store
The |v modifier worked perfectly. Thank you
Forum: Plugins
In reply to: [Calculated Fields Form] Use utm parameter as default value for dropdownNevermind, I fixed it by writing getURLParameter(‘v’, ”) in a calculated field in each form.
Forum: Plugins
In reply to: [Calculated Fields Form] Use utm parameter as default value for dropdownHi again,
The js script above works well when there is only 1 cff on the page. However, when there is more than 1 cff, it only works for the first one, even though I pasted the script in all forms.
https://tulumcharters.com/test/?v=3
How can I make it work for multiple forms on the same page?
Thank you
Forum: Plugins
In reply to: [Calculated Fields Form] Use utm parameter as default value for dropdownIt works! Thank you
Forum: Plugins
In reply to: [Calculated Fields Form] Use utm parameter as default value for dropdownThanks for your quick response.
I copied the script and pasted it in an “HTML Content” field below the dropdown field.
The dropdown is named fieldname1.
This is the url https://tulumcharters.com/test/
You can see a short video of what the form settings look like: https://www.loom.com/share/f92762861de448eab42b478752459ec2
It is still not working. Not sure what i’m doing wrong.
Thanks for your help
Forum: Plugins
In reply to: [Contact Form 7] Form is not working on androidMesmerize. I have already tried changing themes to elementor and the problem persists.
Forum: Plugins
In reply to: [Contact Form 7] Form is not working on androidYou can see a shorter form with the same problem in the following page: generamas.com/test/