hbna
Forum Replies Created
-
Forum: Plugins
In reply to: [Alt Manager] Title Tags in HTML edit AreaI found what the problem was. I was not using the absolute path to the image. You have to do that when you hard coding the images or it will just give you alt=”Image Alt”. Thank you.
I like your Head and Footer code. It has been very helpful for me over the years.
Well I created a new GTM and installed it and could not duplicate the issue. So sorry to bother you with this. Its in our GTM code tags that have been created over the years.
I loaded a completely new WordPress Install, starting from scratch. I did nothing to the install. Right after that, I downloaded your plugin with no other plugin added. Then I created an external link with target=”_blank” on the new home page. Then I clicked on the link and came back to the page the link is on and got the same code in the footer of the new site. https://physicianb1dev.wpenginepowered.com/
- This reply was modified 9 months, 2 weeks ago by hbna.
Forum: Plugins
In reply to: [Chained Quiz] Submitting More than OnceI don’t allow any users to login. There is nothing to log in to.
looks good on the live site. Also – Is there a script I can add to this that will only accept numeric values and if the user tries to enter a letter an alert will appear. In addition, when this group is duplicated, I’d like that same alert to appear with the new SSN field. My page I’m referring to is: https://www.heritagebankna.com/new-cd-account-information-personal/ and its on step 3. I have a javascript on the page right now with an alert but it only works on the first SSN field
In addition, I have set the field to have 9 characters and when I refresh the page, the field defaults to 9 * like *********. Shouldn’t the field be empty by default?
Ok it is now masking the field like *****. Now my question is if that new code writes the field to a hidden field so the value goes into the database?
I found a solution with a javascript. thanks
My form id is 19443 and my field id is text-15. So I changed the code below and put it in the mu-plugins folder and it does not work.
<?php add_action( 'wp_footer', function(){ global $post; if ( is_a( $post, 'WP_Post' ) && !has_shortcode( $post->post_content, 'forminator_form' ) ) { return; } ?> <script type="text/javascript"> jQuery(document).ready(function ($) { var hidden = ''; $("#forminator-module-19443 #forminator-field-text-15").keyup(function (e) { var field_value = $(this).val(); field_value = field_value.replace(/ /g, ''); var field_length = field_value.length; var m = 0; var arr = field_value.split(''); var field_newval = ""; if (arr.length > 0) { for (var m = 0; m < arr.length; m++) { if (m >= 0 && m <= 4) { field_newval = field_newval + arr[m].replace(/[0-9]/g, "*"); } else { field_newval = field_newval + arr[m]; } } } hidden = hidden+e.key; $("#forminator-module-19443 #hidden-1").val(hidden); $("#forminator-module-19443 #forminator-field-text-15").val(field_newval); }); }); </script> <?php });
and where do I use this? Did you forget the <?php at the beginning?
Where do I find the form ID and the Field ID?