How to assign a default value for a reference field

mark141230
Tera Expert

Hi Everyone,

I have a requirement, I need to assign a default display value to my Project Time Category  which is a reference field in a Time Card Table.

In the Project Time Category Table i have the following entries:

 - Standard

 - Non-OT Billable

- OT Billable

- Offset

What I want is, once the user open the form, it will automatically display the "Standard" in the Project Time Category field in the Time Card Forms.

Thanks in advance.

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Add the sys_id of the "Standard" choice from 'project_time_category' table as the Default value of the field 'project_time_category' in the Time Card table

 

Example for 'Development' choice from my PDI:

 

find_real_file.png

 

When user creates a new Time Card-

 

find_real_file.png

View solution in original post

6 REPLIES 6

Community Alums
Not applicable

Add the sys_id of the "Standard" choice from 'project_time_category' table as the Default value of the field 'project_time_category' in the Time Card table

 

Example for 'Development' choice from my PDI:

 

find_real_file.png

 

When user creates a new Time Card-

 

find_real_file.png

Hi shruthiub,

 

Thanks for this it works. 🙂

Community Alums
Not applicable
Hi, Glad to know that. Can you mark my answer as correct/helpful and close the thread! Thank you! 🙂

Jaspal Singh
Mega Patron
Mega Patron

Hi Mark,

 

Right click the 'Project Time Category' field & pass the default value 'Standard'. No need to pass 

'sys_id' as display value is Name for project time category table.