disable fields after insert
Posted: 2022-08-11 11:02
Hi I want to disable fields after the record is created, so only on the update screen
this does not seem to work, is there an easier way to do this?
if I use this below it works, but also disables on insert too which is no good for me
this does not seem to work, is there an easier way to do this?
Code: Select all
function testTable1_footer($contentType, $memberInfo, &$args) {
$footer='';
switch($contentType) {
case 'tableview':
$footer='';
break;
case 'detailview':
$footer="<%%FOOTER%%><script>
$j('#update').click(function(){
\$j('#Contract-container').prop('readonly','true');
\$j('#Name-container').prop('readonly','true');
});
</script>";
break;
Code: Select all
function testTable1_footer($contentType, $memberInfo, &$args) {
$footer='';
switch($contentType) {
case 'tableview':
$footer='';
break;
case 'detailview':
$footer="<%%FOOTER%%><script>
\$j('#Contract-container').prop('readonly','true');
\$j('#Name-container').prop('readonly','true');
</script>";
break;