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.
User avatar
By programerboy
#816240
Hi,
How can I change input (textbox, dropdown, datetime, file, multipleFile, ...) mode (edit, view, disabled) in form designer on runtime ?
For example a code like this:
Code: Select all
$('#text01').set('mode', 'disabled');
Thanks
User avatar
By amosbatto
#816246
You can change the model information for the field, but that won't change the behavior of the field, because it has to be recreated and reinserted in the Dynaform (and I don't know how to do that).

If you just want to read the mode set for the field:
Code: Select all
getFieldById("clientName").model.attributes.mode
Where "clientName" is the field's ID.

The best way to do this is to use the standard properties for the input field:
$("#clientName").getControl().prop("disabled", true)
or
$("#clientName").getControl().attr("readOnly", true)

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

Experience heightened pleasure with Cenforce 100 M[…]

Get an instant solution to move emails to MBOX for[…]

Most Demanding OST to PST Converter

The most demanding OST to PST Converter is TrijaT[…]