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 kleung
#829603
Hi,

I found a suggestion on disabling a dynaform with
getFormById("3139343265babcd5465a282094686398").model.set('mode','disabled');
in https://forum.processmaker.com/viewtopic.php?t=732178

However, I did not work in my case.
Grateful if I can be advise whether the statement work with PM 3.2.1 community version.
Or
Please advise me a method to disable a dynaform with javascript.

Many Thanks

cheers,
Karl
User avatar
By kirkwg
#829606
Hi,

I tried to use this statement to disable the main dynaform, seems it works well (on my side v3.6.x) for many of fields inside the dynaform be disabled. You could try to see the effect?
Code: Select all
$("#7011781245f0fce561290d7023151481").find(".form-control,input,button,textarea,select").attr("disabled", true);
//replace your dynafome id

🚀 Tauchen Sie mit Immediate Alora AI in die Welt d[…]

Do you want a quick way to delete passwords from P[…]

Try the CloudMigration PST Converter to convert […]

In the rapidly evolving world of online sports be[…]