Hidden inputs in viewdefs is working in suitecrm 8.1.2

Hidden custom field is working in public/legacy/modules/Contacts/metadata/editviewdefs.php ?

$viewdefs ['Contacts'] =
array(
  'EditView' =>
  array(
    'templateMeta' =>
    array(
      'form' =>
      array(
        'hidden' =>
        array(
          0 => '<input type="hidden" name="opportunity_id" value="{$smarty.request.opportunity_id}">',
          1 => '<input type="hidden" name="case_id" value="{$smarty.request.case_id}">',
          2 => '<input type="hidden" name="bug_id" value="{$smarty.request.bug_id}">',

Suitecrm 8.1 any
php 8
Thanks

Contacts is not a legacy module in SuiteCRM 8, so no, that’s not going to work.

1 Like

Do you know which modules are not legacy in suite8?

That’s very easy to spot visually if you pay attention, they look different :slight_smile:

Also have a look at this file:

services/module/module_routing.yaml

and search these forums for that file name to learn more.

1 Like

It’s true that looks different! thanks!

1 Like