I want it to be like this:
if the answer from the dropdown menu is YES, then the text field is read only but if the answer is NO then the text field is fillable.
Thanks in advance
Use this code as the custom validation script of the drop-down in question:
this.getField("Text1").readonly = (event.value=="Yes");