Lware

How to prevent text from phone number field gravity forms

To prevent users from entering text into a phone number field in Gravity Forms while using international phone format, you can utilize JavaScript to validate the input. Here’s a basic example of how you can achieve this (prevent text from phone number field gravity forms). jQuery(document).ready(function($) { // Replace 'input_1_3' with the ID of your

How to prevent text from phone number field gravity forms Read More »

PHP Fatal error: Uncaught Error: Call to undefined function create_function()

I recently encountered PHP Fatal error: Uncaught Error: Call to undefined function create_function error when updating WordPress install from PHP7.4 to PHP8.0. Below was the line of code that was causing the issue [php]add_action( ‘widgets_init’, create_function( ”, ‘register_widget( "Qode_Pitch_Sticky_Sidebar" );’ ) );[/php] In PHP 8, the create_function function has been deprecated, and its use is

PHP Fatal error: Uncaught Error: Call to undefined function create_function() Read More »