You need to sign in to do that
Don't have an account?
Create New Object
Hello All,
I hope this is the correct forum.
I relatively new to Apex and needing some help achieving this particular task.
I have two custom objects. Call these ObjA and ObjB. ObjB is related to ObjA, and has a look-up field to reference the related ObjA. It has another picklist, say "country". ObjA also has the "country" picklist.
Now when the user chooses to create the related ObjB from the ObjA details page, salesforce automatically populates the reference to ObjA in the ObjB data entry form. Is it possible for me auto-select the "country" picklist in ObjB data entry form based on the related value in ObjA?
Secondly, there's a third custom object, ObjC. I'd like the users to be taken to the data entry form to create new ObjC, if they select "US" in the picklist in ObjB and save ObjB. It'll have to be in the trigger condition, but I unsure as to how to initiate "create new object" screen.
Hope this is not as confusing as it seems to me :) I look forward to your responses and if I do manage to get it solved, I'll post the solution for future ref.
Thanks
for this part
Now when the user chooses to create the related ObjB from the ObjA details page, salesforce automatically populates the reference to ObjA in the ObjB data entry form. Is it possible for me auto-select the "country" picklist in ObjB data entry form based on the related value in ObjA?
if they are always creating objB from objA then you could create a custom button and pull that data through very easily.
on that same button link s-control - have the user brought to a new url (the create new record for objC)