Skip to main content

Having an issue with the Save button.


When the Save button is pressed, an opportunity record is created, however, the page gets directed to a standard webpage within Salesforce1 (see second screenshot).


Not sure if my ON-TAP ACTIONS are correct:


Nick~

It looks like the problem is with your Go To URL. Preview the Skuid page you want this page to redirect to on tap. Copy the URL from that page and keep the part from /apex on. For example, if I want to redirect to a page called OpportunityDetail, this is what I would have in the Go To URL /apex/skuid__ui?page=OpportunityDetail.

Thanks!
Karen


Hi Karen, This didn’t work…


One more thing.  You need to wrap your Id field in {{{Triple Braces}}}.   Somehow your url is breaking and then just going to the Salesforce home page,  and I suspect that because you are putting your id in double braces - skuid is attempting to add some additional code to the merge which is making the URL break…


Hi Rob,


Adding the triple braces didn’t work either. Here is what my URL redirect looks like in Skuid:
https://xxxxxxx.mysalesforce.com/{{{Id}}}


Our old URL of https://xxxxxxxx.mysalesforce.com/{{Id}} was working up until a couple of days ago when I had inserted 3 fields into the Deck, but removed the 3 fields. This is when the SAVE function broke. Nothing else was changed.


Here’s what the URL looks like when I access the Opportunity record in a web browser:


This reply was created from a merged topic originally titled Save Button not rendering correctly on Salesforce1 app URL DIRECT?. Having an issue with the Save button.


When the Save button is pressed, an opportunity record is created, however, the page gets directed to a standard webpage within Salesforce1 (see second screenshot).


Not sure if my ON-TAP ACTIONS are correct:




Adding the triple braces didn’t work either. Here is what my URL redirect looks like in Skuid:


https://xxxxxxx.mysalesforce.com/{{{Id}}}


Our old URL of https://xxxxxxxx.mysalesforce.com/{{Id}} was working up until a couple of days ago when I had inserted 3 fields into the Deck, but removed the 3 fields. This is when the SAVE function broke. Nothing else was changed.


Here’s what the URL looks like when I access the Opportunity record in a web browser:


Try going to this URL instead, does this work?

/{{{$Model.Opportunity.data.0.Id}}}


Hi Zach,

I received an error message after I clicked Save:

You can't view this page, either because you don't have permission or because the page isn't supported on mobile devices.




Any ideas? 


Looks to me like you have the opportunity view override set to a visualforce page that has not been enabled for use in the mobile environment. 


Hi Rob, 

I do have the “Available for Salesforce mobile apps and Lightning Pages” selected on the visualforce page 😦

Would it be best to rebuild my mobile skuid page? 

Thanks!


This has been resolved. This issue, however, were from several minor factors. 

1) The “Go To URL” should have been set to:   “http://xxxxxx.mysalesforce.com//{{{$Model.Opportunity.data.0.Id}}}” (Thanks Zach for bringing it up and thank you Rob for walking me through this today)

2) The On-Tap Actions were out of order, and had to be re-arranged (Thank you Rob!)

3) A Page Assignment, applied to Organization Default, had to be created in order for System Admin to view the rendered page after clicking on the Save button (again, thank you Rob!)


All good.  Glad we were able to get things working! 


Reply