Read Only Gravity Form Field

This is all you need:

jQuery('.read_only input').attr('readonly','');

More complex example that occurs for logged in users only:

jQuery(window).load(function() {
if(jQuery('.logged-in').length>0) {

jQuery('.read_only input').attr('readonly','');

} 
});

Original source (using functions.php).

Leave a Reply

katherine as a flat graphic icon

About Me

I’m an African / Ojibwe First Nations Web Developer living in Winnipeg, Manitoba.

Visit the Tips and Blog to see what I’m working on.