Skip to main content
Solved

Dropdown auto select

  • August 13, 2025
  • 2 replies
  • 35 views

Forum|alt.badge.img+1

Hallo,

 

If a dropdown field has only one value option, how can it be auto-selected during record creation?

 

below is the field

 

In SF, the Customer field is a lookup 

 

Thank you in advance

Best answer by Dani

Hey ​@Jheng ,

To fill in the field value during creation of the record, you can make use of the 'default’ logic for that table.
https://docs.thinkwisesoftware.com/docs/sf/business_logic#default
 

Something like this:

if (select count(*) from customer) = 1
begin
set @customer_id = (select top 1 customer_id from customer);
end

Let me know if it helps.

Kind regards,

Dani

This topic has been closed for replies.

2 replies

Dani
Moderator
Forum|alt.badge.img+2
  • Moderator
  • Answer
  • August 14, 2025

Hey ​@Jheng ,

To fill in the field value during creation of the record, you can make use of the 'default’ logic for that table.
https://docs.thinkwisesoftware.com/docs/sf/business_logic#default
 

Something like this:

if (select count(*) from customer) = 1
begin
set @customer_id = (select top 1 customer_id from customer);
end

Let me know if it helps.

Kind regards,

Dani


Forum|alt.badge.img+1
  • Author
  • Vanguard
  • August 14, 2025

Hi Dani,

 

Thank you, manage to do the default logic