Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Set default value for lookup field Topic is solved

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
mih
Posts: 30
Joined: Thu Jan 26, 2023 12:04 pm
Has thanked: 3 times

Set default value for lookup field

Unread post by mih »

How to set default value for lookup field - should I set only code or also description?
How better to do - by nuAddJavaScript or by nuOnProcessObjects() ?
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: Set default value for lookup field

Unread post by kev1n »

Use nuGetLookupId() in the form's Custom Code to set a lookup's value, maybe in combination with nuIsNewRecord()
mih
Posts: 30
Joined: Thu Jan 26, 2023 12:04 pm
Has thanked: 3 times

Re: Set default value for lookup field

Unread post by mih »

Yes, it works! Thanks!
Post Reply