Hello
I would like to limit certain fields FIRST NAME to a single record and the others to unlimited.
Let me explain: I enter my NAME, my FIRST and it is blocked, the other fields remaining open.
It's possible ?
limit certain fields FIRST NAME to a single record and the others to unlimited.
Re: limit certain fields FIRST NAME to a single record and the others to unlimited.
Hi,
yes this is possible. You can do it by adding the following code to the hooks/<tablename>-dv.js (which you might need to create)
yes this is possible. You can do it by adding the following code to the hooks/<tablename>-dv.js (which you might need to create)
Code: Select all
$j(function () {
if ($j('#YOURFIELDNAME1').val() != '') $j('#YOURFIELDNAME1').prop('readonly', true);
if ($j('#YOURFIELDNAME2').val() != '') $j('#YOURFIELDNAME2').prop('readonly', true);
});
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.