Skip to main content

Make a Dynamic Text Field for CF7 Field Readonly

Author

Robert Loncaric

Timestamps

Created: 06 August 2024
Modified: 06 August 2024

Out of the box, readonly is not an option, but we can easily add it.

Steps

First give the field a class.

Than just add this to the CSS file.

[shortcodefield readonly proizvod class:readonly "DYFCF7_get_post_title key='post_title'"]
<?php
.readonly {
	pointer-events: none;
}
?>