I have an object called Sortiment__c, which is related to Product object. When creating a new record on the Sortiment object I can choose the product I want as it is a lookup field.Now I want to autopopulate another field called sortiment_price with the price of the product I just chose. The field sortiment_price should immediately show the price(and not after saving the record) Is there any way to achieve this without using Apex?  ​​​​​​​Thanks!


No, you can't do this without Apex (and probably JavaScript); you'd need to build a custom user interface for record creation using a Lightning component or Visualforce page in order to achieve this. Otherwise, you'll have to settle for having the field populate at the time of saving, which you can do with Flow or simply by using a formula field.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.