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
Nivedita JokhunNivedita Jokhun 

Overriding salesforce1 standard page result in loop

I actually override my account edit button with a visualforce page, that will redirect to the standard page using the override=1 to certain user , while other users will be redirect to another page for a request. On the web it works well. When adapting it to mobile, the override=1 doesn't not work. It redirect constantly on my vf, thus resulting in an infine loop.

It seems that they already fix the bug, as mention in this post : Override Standard New button in Salesforce1. But, it doesn't work for my case. I tried doing it in apex, also using js, but none of the below methods work:

sforce.one.navigateToSObject(accid,"edit"),

sforce.one.navigateToURL('/' + accid + '/e?nooverride=1&retURL=%2F' + accid),

sforce.one.editRecord(accid)

They all enter an infine loop. Does someone encounter this problem, with a solution to it ?