Function Field Checkbox Missing

Carter1
Giga Guru

Hi all,

I am trying to create a new dictionary entry in a table and have it be a function field. When I go to create new entry, I do not see the checkbox to select "Function Field".

I am able to do so in my personal instance just fine but cannot find a way to create a function in the instance I am having trouble with.

Any help would be appreciated.

1 ACCEPTED SOLUTION

Is your custom table in any specific scope? Can you try changing the scope of instance to the scope that table is in & then check. 

If not, you can use a background script so as to get it checked to True.

Something as below. Try it in DEV first.

var uprec=new GlideRecord('sys_dictionary');
uprec.initialize();
uprec.name='incident'; //replace your table name change_request, etc.
uprec.internal_type='boolean'; //truefalse or string
uprec.column_label='ABC';
uprec.element='xyz';
uprec.function_field=true;
uprec.insert();

View solution in original post

22 REPLIES 22

Jaspal Singh
Mega Patron
Mega Patron

Hi Carter,

 

Can you do few checks as below.

1. Look for UI Policies sys_dictionary table

2. Look for Client Scripts on sys_dictionary table

3. Look for ACLs on sys_dictionary table

As, only above can be responsible for a field to be shown/hidden on the form. 

4. Also, check if the Scope of instance is Global or something else.

Hi Jaspal,

I located the following and it looks like the following ui policy is modifying the function field in some way. Could you help me decipher the below script? I can't exactly tell what it's trying to do.

find_real_file.png

Hi Carter,

 

That is for 'function_defintion' & not 'function_field'. 

Also, to understand the field itself is not available? or field is read-only.

If it is an issue of field being visible but not being editable then you need to look Client Script: Function fields are decided at creation .

The field itself is not available. When I go to create the field the function field checkbox does not show up. I will check client scripts