Hi guys, I have looked everywhere but can't seem to find out where to disable a lookup preloading on a new form. As an eg When we create a new Contact the Account field is preloaded with the last visited Account, I understand why it would behave like that but we dont require it.
Probably somewhere simple but I cant for the life of me find it
Hi Byron,
Try to remove the Account Lookup from the form then save. Now edit the page again and specify the Account lookup to the form then save. It works for me, I think this is just some cache issue.
Regards,
Orchid
Hi Byron,
Here are steps that clears the default values of a lookup.
1. Go to object definition > Edit the lookup field > clear the Default Value (if there is a value assigned to it)
2. Go to New/Edit page and click Design this page > Open Lookup properties and uncheck the "Use Record in Scope for New Objects" and "Show Record In Scope" (Show Record In Scope usually disabled - only enabled when a lookup is a hidden style)
Hope this may help.
Regards,
Orchid
Hi mate
Just to show you as I would have thought the same:
and the field definition:
Hi Byron,
Here are steps that clears the default values of a lookup.
1. Go to object definition > Edit the lookup field > clear the Default Value (if there is a value assigned to it)
2. Go to New/Edit page and click Design this page > Open Lookup properties and uncheck the "Use Record in Scope for New Objects" and "Show Record In Scope" (Show Record In Scope usually disabled - only enabled when a lookup is a hidden style)
Hope this may help.
Regards,
Orchid
Flag this post as spam/abuse.
Yes, that is exactly the pages.
Regards,
Orchid
ha ha but as you can see there is nothing being used in scope and no values have been defaulted?
Do you have any code to the page that possibly setting the lookup?
Regards,
Orchid
Nothing mate, I did try clearing it out On Load of the form but seems counter productive.
When you create a new Contact, is it from a Workflow Action or a New Contact from the contact list view page?
Regards,
Orchid
We are not running workflow for that object mate. It doesnt matter how I load the New Contact form the same behaviour happens:
I have a button that fires the following code:
<form>
<a id="cp-new-accountcontact" class="btn btn-primary" style="display: block" onclick="self.location='dev.internal.applicationscloud.codelessplatforms.com/.../main.jsp Account & Contact</a>
</form>
As well as if I click the New Contact button in the List of Contacts, so it would see as though it is set on the page itself but there is nowhere in my code that I am doing it (Although I am working with the behavior).
Hi,
Can you send me a copy of the xml of your app that includes that object to ocorpin@progress.com, I think the above configurations are the only options to clear the lookup aside from code.
I would like to check if this is a possible defect so I can report it to the development team.
Regards,
Orchid
Email sent
Hi,
I already received the email. Will now check the app.
Regards,
Orchid
Hi Byron,
Try to remove the Account Lookup from the form then save. Now edit the page again and specify the Account lookup to the form then save. It works for me, I think this is just some cache issue.
Regards,
Orchid
Thanks, worked. Should have tried that...
That's great that it works for you!
Cheers,
Orchid