My main aim is to show different fields on child object, if the parent object has a particular piclist value.
To achieve this I have created 2 record types and 2 page layouts.
So I have created a custom button to add the child record with prefilled value of the parent by URL hacking.
/a0T/e? CF00N0k000002irEW={!TRIM(Returns_Request__c.Name)} &CF00N0k000002irEW_lkid={!Returns_Request__c.Id} &retURL=%2F{!Returns_Request__c.Id} &RecordType={!IF( INCLUDES( Returns_Request__c.Reason__c ,'Incorrect Pricing') ,'0120k0000008QsNAAU','')} &ent=01I0k000000AsBx
This is the code I have used. It works perfectly on website but does not work on mobile.
Please suggest any improvement on this or maybe a completly different way to show different fields on child record creation based on parent record picklist.