Prevent a filed to be modified when in create

  • Thread starter Deleted member 75341
  • Start date
D

Deleted member 75341

Guest
Hello Mr. Tacchini,
is there any trics that I can use, with Dadabik 8.3, to prevent users modify a field when in create mode ?
The goal is to have a default value that can be read but can't be modified.

Currently I partially "locked" the record using css (pointer-events) but this don't prevent user to use the tab to enter in the field and modify it.

I thought, for example, a dadabik_calculate that report the current default value of the field or something like this but I don't know how to do.

Please, any suggestion?

Thanks in advance.
 

eugenio

Administrator
Staff member
Hello,
I think we already discussed this via email, I confirm you cannot make a field disabled in the insert form (not in 8.x, nor in 9.x), you can only hide it.

If you can use calculated fields, you could just return a fixed value in the function, e.g. "return 10", but it works both for insert and update forms.

Best,
 
Top