I have need to replicate opportunity object Lighting Inline Edit Page in order to to show a text box only when the value is selected in the picklist.
If we use <Lighting:record form>
i can get the inline edit page
but i cannot add the condition to display the text box when the value is selected from drop down. Please help me how to add condition for ob change of picklist value.
<lightning:recordForm
recordId="0062v00001DmT9sAAF"
objectApiName="Opportunity"
layoutType="Full"
columns="2"
mode="view" />
<lightning:recordForm>
doesn't allow you to add custom functionality to the generated form. More generally, there isn't any Salesforce component that allows you to generate a standard view but also make changes to its inner workings.
You can completely rebuild the form using <lightning:recordEditForm>
, but you'll have to define the entire form in your component.
A more sustainable solution in my opinion would be a small custom component placed on the Lightning Record Page alongside the standard record detail component and providing only your custom functionality. You can configure the component to display conditionally on the specific record value you want with the built-in support in the Lightning App Builder.