tag:blogger.com,1999:blog-4216096443336193383.post1925163206826407140..comments2024-03-29T13:09:33.671+05:30Comments on Amit Salesforce | Salesforce Tutorial: Custom Popup in Salesforce | Visualforce pageAmit Chaudharyhttp://www.blogger.com/profile/12828839053069750596noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-4216096443336193383.post-8702794722346647522020-09-21T23:55:10.603+05:302020-09-21T23:55:10.603+05:30How to modal contact object when hitting "add...How to modal contact object when hitting "add contact" button in which there are two field FirstName and lastName. in this model there are two button save and cancle when clicking save then save the record and when clicking cancle then cancle modalRajesh kumarhttps://www.blogger.com/profile/00009689864758120761noreply@blogger.comtag:blogger.com,1999:blog-4216096443336193383.post-46264410994458596662019-06-21T00:31:19.621+05:302019-06-21T00:31:19.621+05:30Hi AMit,
can we open a visualforce page from an a...Hi AMit,<br /><br />can we open a visualforce page from an apex method withoud any button click .<br />FOr example, I click on a button on a standard account detail page and the button calls an apex method..now the apex method inserts some contacts ..and after inserting it we need to open up a visualforce page<br /><br />if (response.getBody() == '{}')<br /> {<br /> classname.opennewvf();<br /> }<br /><br /><br />public static PageReference opennewvf()<br /> {<br /> System.Debug('External Id unavailable');<br /> PageReference vfPage1 = new PageReference('apex/MyVf');<br /> vfPage1.setRedirect(true);<br /> return vfPage1;<br /> }Siddharthahttps://www.blogger.com/profile/06879026464045193419noreply@blogger.com