Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By iacsvrn
#828605
Hello.

If I`m wirte to textarea some, and after two or three steps come to in field, I can edit, but can`t disable to delete text and enable only add it.

How I can create something like a textarea field where I can correspond with someone, but we can`t delete what we`ve already written there.
By marceloayllon
#830104
Hello iacsvrn,

You should use the getControl() function, in order to select the Dynaform control inner HTML element, and the proper way to disable it is using prop().

So, your code should look like this:

Code: Select all
function checkComplianceFor() { 
  if( $('#complianceType').getValue() == 0 ){ 
 	 $("#renewalFrequency").getControl().prop('disabled', true);
  } 
}

$('#complianceType').setOnchange(checkComplianceFor);
I hope you'll find this example useful.

Regards,
Want to create your own meme coin?

In the world of cryptocurrencies, a unique and exc[…]

The market for cryptocurrencies is demonstrating a[…]

What's SAP FICO?

Embarking on a dissertation can be one of the most[…]

Hello. For rental housing, there are software solu[…]