function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Upasana PaulUpasana Paul 

URL hack to prefill values not working on mobile. Alternate method possible?

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.