patric-boehner
3/20/2016 - 12:56 AM

Make forms fields disabled or readonly in Gravity Forms vs Ninja Forms

Make forms fields disabled or readonly in Gravity Forms vs Ninja Forms

jQuery(document).ready(function($){
	$(".disabled input").attr('disabled','disabled');
	$(".readonly input").attr('readonly','readonly');
});

#Make forms fields disabled or readonly in Gravity Forms vs Ninja Forms

I've seen this in a couple of places so wanted to make a note of it for future use. Their is a plugin from Engage WP that does this a little more agnosticaly then other snippets i have seen that target gravity form class's and id's specificaly. This should work with any wordpress form plugin that allows you to add custom classes to individual form fields.

Simply enqueue this js and enjoy.