The gform_pre_delete_feeds action is a hook in Gravity Forms that allows you to run custom code before feeds are deleted. It can be useful in various scenarios, such as preventing…
The 'gform_print_scripts' action is a hook in Gravity Forms that allows you to enqueue scripts or styles to be included on a page that contains a form. This can be…
The following jQuery shows a method I've used to automatically format images with a caption taken from the image ALT tag. This method is useful where you can only insert…
The PHP code below shows how to pre-fill a list field in Gravity Forms. This is done using the gform_field_value_$parameter_name filter that allows you to populate a field with values…
The following jQuery will set all checkboxes on a page to checked/ticked/selected. NOTE: it's been written for WordPress, which uses 'jQuery' instead of '$' - if you're using this outside…
The PHP code below shows how to pre-fill a list field in Gravity Forms. This is done using the gform_field_value_$parameter_name filter that allows you to populate a field with values…
The following script (jQuery and JavaScript) shows how to set a random colour on elements - in this case, a background colour in inputs. function set_input_random_colour() { var random_colour = …
The following jQuery script can be used to automatically add HTTP:// to the start of a input field value if the value doesnt already start with either HTTP:// or HTTPS://…