Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.

Default Value in lookup field

Locked
ruiascensao
Posts: 177
Joined: Tue Nov 15, 2011 2:24 pm

Default Value in lookup field

Unread post by ruiascensao »

Hi,
How can I have a default value in a lookup field when I create a record?

Lookup field : unit_visa_id

Table to lookup: 'visa'
Fields : visa_id, visa_code, visa_name

I tried ....

Code: Select all

document.getElementById('unit_visa_id').value        = '14f84453ade474';
but it doesn't work ...
How can I do this using JavaScript or sql?

Thank you!

Best Regards,
Rui
BR
Rui
admin
Site Admin
Posts: 2824
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 29 times

Re: Default Value in lookup field

Unread post by admin »

Rui,

Its done in SQL..
Capture.PNG

Steven
You do not have the required permissions to view the files attached to this post.
ruiascensao
Posts: 177
Joined: Tue Nov 15, 2011 2:24 pm

Re: Default Value in lookup field

Unread post by ruiascensao »

It's working. :o)
Thank you Steven!

Regards,
Rui
BR
Rui
admin
Site Admin
Posts: 2824
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 29 times

Re: Default Value in lookup field

Unread post by admin »

.
Locked