Hello,
Is there a way to launch a Lookup/Lookup Form from a button instead of the standard field with the magnifying glass? So instead of entering text and searching, the button launches the Lookup's defined form and allows something to be selected from there.
Can't see an obvious way to do it with the Run object as it will nly open the browse forms and not the lookup function, nor a procedure as it's for php. Is there a built in JS function that can do this?
Thanks,
Paul
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Launch Lookup Form from Button?
-
- nuBuilder Team
- Posts: 4304
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: Launch Lookup Form from Button?
Use a Lookup Object and set it invisible. Then add a button to your form with an onclick event in the Custom Code having this JS:
Replace OBJ_ID with the Object Id of your Lookup Object.
Code: Select all
$('#OBJ_IDbutton').click();