Questions tagged [save-and-new]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
14 views

How to differentiate when user clicked on New or Save & New button in salesforce Lightning controller?

I have overridden the standard new button using lightning component. In spite of this, when user is clicking on Save & New button on the edit screen, it is navigating the lightning component. I ...
1
vote
0answers
61 views

Auto populate Account name on child object while click on “Save & New” standard button

I have created a custom object and created a Master-details lookup field to Account. While creating new records, there is an issue. When I click on New button, fill in all the fields and click on "...
0
votes
3answers
496 views

navigateTo : New record

I have replaced the standard "New" functionality on a custom object, and I want to navigate to the newly created record after save. I have looked at the developer documentation, and I get that I need ...
1
vote
1answer
481 views

New Quote Button Suddenly Disappeared from SF1 July 2017

This might be an edge case but I think there will be more folks who notice that if they are using Lightning and have the Quote related list added to Opportunity they will not be able to create a new ...
1
vote
1answer
608 views

Rendering and Rerendering a command button after submitting a record

I have a two command buttons that are able to save a record. One button fully submits the record and sends it to the edit view. The other save button will update the record if there is anything the ...
0
votes
0answers
35 views

How to carry my pick list value in wizard..?

I am trying to build one custom Wizard in which I have three pick list fields. In page no 4 I am having one save button if I click that it should save my selected picklist value. My Apex Code is: ...
1
vote
1answer
744 views

Custom Save function for a Button

I believe cardRequest is the primary culprit in this issue. It is the record object. Why does my save function not save and create a record of the page I am trying to save? public PageReference ...
0
votes
2answers
85 views

After update visualforce page (picklist field) …it wont refresh standard page..how it save standard page [duplicate]

After update visualforce page (picklist field) it does not refresh standard page. How it save standard page? This my controller: public with sharing class Myorderextension { public list<...
0
votes
0answers
685 views

How can i Override Custom button with Save & Add products(Opportunity)?

Is it possible to Override the Standard button (Save & Add Products) on creating of Opportunity with Custom Button (Actually the thing is i want only save the record with out prompting user to ...
0
votes
1answer
1k views

Need Save and New method in controller for save and new custom button

I trying to add Save and new button at quote line item page editor level. But I'm stuck with ideas. Controller: public PageReference save() { checkRecursive.run = false; ...
4
votes
0answers
266 views

Does defaulting save_new_url still work?

I see other posts that suggest populating the save_new_url will direct the user to a page other than the standard new for the record you are creating, but I can't get this to work. I go to this URL: ...
28
votes
2answers
489 views

How to write the superduper (=proper and stable) Custom Save method

Custom Save actions in Apex are tricky! Here are my requirements which I was unable to fulfill without harming the stability of my code: Save for New and Edit (works with record with and without Id) ...
1
vote
3answers
10k views

Visualforce Error: Attempt to dereference a null object

Error comes at line 23. Line 23 is mentioned below as a code comment. I also tried by commenting this line and still error is there. But at line 24 which is upsert(Event); Controller public with ...
6
votes
5answers
880 views

URL Hacking - autosave

Is there a way to autosave a record that is created or opened for editing in salesforce ? In light of this feature not being available in salesforce my users are complaining about losing data even ...
0
votes
1answer
122 views

Save Commanbutton errors out on hitting twice :System.ListException: Before Insert or Upsert list must not have two identically equal elements

I have a visualforce page, embedded in standard pagelayout of Account, that displays a list in peblocktable and can be inline edited. while hitting the Save button, it updates records and rerenders ...
0
votes
2answers
2k views

Override Standard Save button on Opportunity Object

I have the below scenario to achieve : At the time of saving the Opportunity record, I want to invoke a webservice call to the external system. If the response of the call is greater than some value,...
2
votes
2answers
3k views

Show Warning Popup on standard Save Button Click

I have the requirement to show a WARNING POPUP / confirmation box based on a condition. If user edits the opportunity and changes the status to "Closed Won", then clicks on save then depending on ...
0
votes
2answers
7k views

Custom 'Save & New'- Button with redirect to record type selection page

My custom object has different record types and an overwritten edit page. I want to implement a 'Save & New'- Button on this VF page which redirects my users to the record type selection page. ...
2
votes
1answer
5k views

Mapping Dynamic picklist value from VF Page to Custom Field

This is my VF page which has one Picklist Field and it is dynamic, I mean when a record is created in another object for ex:two__c, it's record name will get added to this picklist values. Now the ...
1
vote
0answers
210 views

Pass Data from VF section on detail page to standard Save button

The initial requirement is to create a Dependent Look Up so that when one look up is clicked it will control the values of second dependent look up. What I have done: Created a VF page and a custom ...
2
votes
1answer
154 views

Saved content not displaying content right away on unauthenticated force.com page

Im trying to do a custom simple save and new method in a custom controller. Basically its just a simple form for nominations with a table above it of all the already submitted nominations and the ...