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
Soundar Rajan PonpandiSoundar Rajan Ponpandi 

Validation is not working in Mobile View

Hi,

I written one validation, That validation is not allowed a  user to edit the record once converted. It's working fine in a desktop mode. But it's allowed to edit a record in mobile view. Validation is appearing after record save (In Mobile View).

Please check my validation code and advise me what was the misatke on that AND is that any possible ways to reduce the validation rule.
 
AND(
OR(
ISPICKVAL(GD_Lead_Status__c, 'Working'),
ISPICKVAL(GD_Lead_Status__c, 'Nurturing'),
ISPICKVAL(GD_Lead_Status__c, 'Retired'),
ISPICKVAL(GD_Lead_Status__c, 'Unqualified'),
ISCHANGED( GD_Bid_Bond__c ) ,
ISCHANGED( GD_Lead_Priority__c ) ,
ISCHANGED( GD_Lead_Status__c ) ,
ISCHANGED( GD_Lead_Source__c ) ,
ISCHANGED( GD_Expected_Opportunity_Date__c ) ,
ISCHANGED( GD_Revenue__c) ,
ISCHANGED( GD_Lead_Description__c ) ,
ISCHANGED( GD_Source_Description__c ) ,
ISCHANGED( GD_Account__c ) ,
ISCHANGED( GD_Contact__c ) ,
ISCHANGED( GD_Retired_Reason__c ) ,
ISCHANGED( GD_Retired_Upto__c ) ,
ISCHANGED( GD_Competitor_Information__c ) ,
ISCHANGED( GD_Rejected_Reason__c ),
ISCHANGED( GD_Lead_Type__c ),
ISCHANGED( OwnerId )
),
ISPICKVAL(PRIORVALUE(GD_Lead_Status__c), 'Converted'),
Not($Profile.Name = "System Administrator"),
If(GD_Converted__c = True, true, false)
)

 Regards,
Soundar.
Best Answer chosen by Soundar Rajan Ponpandi

All Answers

VinayVinay (Salesforce Developers) 
Hi Soundar,

This seems to be as expected behavior can you take a ook at "Understanding the Status of Updates".

https://trailblazers.salesforce.com/answers?id=9063A000000e7UAQAY    
https://developer.salesforce.com/docs/atlas.en-us.salesforce1appadmin.meta/salesforce1appadmin/customize_sf1_offline_edit.htm

Found below KI regarding validation rule on mobile:

https://trailblazer.salesforce.com/issues_view?id=a1p3A000001SHDgQAO&title=salesforce-mobile-validation-rule-causes-pending-save-error-to-get-stuck

Thanks,
Vinay Kumar
Soundar Rajan PonpandiSoundar Rajan Ponpandi
Hi Vinay,

This link is not opening, can you please check and share me a link once again 

https://developer.salesforce.com/docs/atlas.en-us.salesforce1appadmin.meta/salesforce1appadmin/customize_sf1_offline_edit.htm

Regards,
Soundar.
VinayVinay (Salesforce Developers) 
This was selected as the best answer