8
votes
Lightning Application: Show the User a confirmation popup before closing the browser's tab
In Lightning, just go ahead and set it up as a normal event on the window object:
Controller
({
doInit: function(component, event, helper) {
helper.preventLeaving();
},
afterSave:...
5
votes
Accepted
Popup contact info on VF page
goto to contact page layout -> mini pagelayout (top right corner), add fields, save
5
votes
Accepted
How to create form with 2 columns inside lightning modal
I would need to have more information and code example what you want to do but from your brief description I got that you want to basically create two columns in lightning component.
You need to use ...
5
votes
Accepted
What is the name of this OOB notification method/popup, and is it customizable?
The subscriber-customizable version of this feature is called In-App Guidance:
From Setup in Lightning Experience, enter In-App Guidance in the Quick Find box, and then select In-App Guidance. ...
4
votes
Accepted
Leaflet error when zoom after close popup in lightning component
Solution given by @sundus didn't work for me.
I found out that this problem is caused by the _zoomAnim, so If you don't need animations while zooming disabling also does the trick.
var map = L.map('...
4
votes
Showing alert for a user assigned a task
We had a similar challenge. When we reassigned a record, we needed to have the new owner receive an email notification AND and mobile notification on their phone (near instantly).
Our solution was a ...
4
votes
How to open a visual force page as modal window from another visual force page
The word "popup" generally means a page opening in new window in front of the current window (see e.g. the Mozilla explanation). It sounds like you want a "modal" instead. You can find a few ...
4
votes
Accepted
Press button from apex trigger
Put a soft alert on the page using a conditional image formula
IF (NOT(IsApproved__c) && HasDiscountExceedingGuidelines__c ,
IMAGE("/img/samples/flag_red.gif" , 'Red' ,12,12) &
...
3
votes
Accepted
how to show contact inputField in popup window
You have to create a new Contact in your showPopup() action. In vf page you can display the <apex:inputField wrapping inside <apex:pageBlockTable. Upon saving it will save the new Contact in ...
3
votes
Custom button Javascript popup to have options to choose from
Custom buttons support basic javascript. You can use a prompt box to ask for user's input
var methodSelection = prompt("Please enter which method you want to execute. Available options are : 1. ...
3
votes
Accepted
How to display a popup message on record save
if you are cool with replacing the edit button functionality to a custom vf pgae then I think we can achieve this.
In below example, i have a field leadSource on opportunity. if someone clicks edit ...
3
votes
Add row insted of PopUp for new record
Is it possible to achieve something similar with standard salesforce or is it completely custom?
It has to be a custom component.
If it is a completely custom function what is the best approach ...
3
votes
Accepted
Overlay Library Popup for LWC?
You can refer to the SLDS Modal Blueprint to achieve the exact same thing, furthermore, you can create a "reusable" modal lwc component such as this one (which uses the slds blueprint I ...
3
votes
Accepted
Can I call an aura component in a lightning web component?
As stated in the documentation:
IMPORTANT Aura components can contain Lightning web components. However, the opposite doesn’t apply. Lightning web components can’t contain Aura components.
You'll ...
2
votes
Accepted
Visualforce - how do i hide/suppress Compact Layout Popup
Two things:
Simply output
<apex:column value="{!incomePeriod__c.Name}" ... />
If this is a lookup to something use:
<apex:column value="{!mysObject__c.incomePeriod__r.Name}" ... />
...
2
votes
Popup Window Close
Hello Rahul try this Way
function CloseAndRefresh(){
var newWin = null;
newWin =window.opener.location.href="/{!$CurrentPage.parameters.id}";
if (window....
2
votes
Showing alert for a user assigned a task
You could do this with a Home Page Component (narrow) and the Streaming API.
Your PushTopic.query would look something like:
'SELECT Id FROM Task WHERE OwnerId = \'' + UserInfo.getUserId() + '\''
...
2
votes
How to get the Id from the standard pop up window?
It's not best practice to interfer with this salesforce internal markup. Reason is that for all this you risk that salesforce updates might break your code.
This caveat emptor expressed I actually ...
2
votes
Accepted
Add custom button to contact page layout in lightning which uses custom lightning components
Now it's possible with the latest winter 17 release (Lightning Quick Action): https://releasenotes.docs.salesforce.com/en-us/winter17/release-notes/rn_lightning_component_actions.htm
The Lightning ...
2
votes
Leaflet error when zoom after close popup in lightning component
I solved it by editing the leaflet.js file:
search for the word ( _latLngToNewLayerPoint )
and wrap the code with the condition:
if(this._map){}
so if _map is null, skip
I don't know why this bug ...
2
votes
Custom button Javascript popup to have options to choose from
Yes you can implement the complete functionality in custom button. I can think of two solutions as below.
You can create an HTML element with different buttons based on your requirement. And then use ...
2
votes
Popup during visual flow
It will not work exactly like a popup but if a variable is set in a Flow after the Next button is pressed then a VisualForce page can be navigated to and then after the actions on the VisualForce page ...
2
votes
Accepted
Try Lightning Experience Popup
It can be disabled. Please follow this knowledge Article.
Extracts from the link :
Resolution
This re-engagement effort helps admins in production orgs where Lightning Experience has already been ...
2
votes
Accepted
Want to show an error when the user presses the CongaSign button and they haven't filled in certain fields
You need to wrap your URL in strings - otherwise its going to cause syntax errors, making the button fail to run.
You need to use AND in your button to output a boolean value, just putting a bunch of ...
2
votes
Trigger a popup alert message using checkbox
Since your original goal is prevent user uncheck the Customer__c flag on a Contact record, you can simple make the field disabled (read-only) on the page Layout. See Control User Access to Fields
...
2
votes
Accepted
Only Start of Confirmed Built String Displays in Confirmation Popup Via Visualforce
From comments:
No. actionSupports for inputCheckboxes, which call the methods that build the string (among other things). No rerenders and the methods don't return anything.
The <apex:...
2
votes
Accepted
Embedded VFP not showing on popup
This is the expected behavior.
The page layout has a different behavior when you are creating/editing a record vs. viewing a record.
When you are creating/editing a record, the embedded components ...
2
votes
onclick Javascript link is not supported in lightning experience
OnClick JavaScript buttons pose security and regulatory issues.
Lightning was built from the ground up to deliver the most secure
experience possible with technologies such as LockerService. We ...
1
vote
Want to show an error when the user presses the CongaSign button and they haven't filled in certain fields
You can try using &DC and &DCL Conga control parameters
Retrieved from: Conga Blog
DC stands for “disable Conga.” Now, why would you want to do that? Let’s say you don’t want your users to be ...
1
vote
How to create a timed fade out message using force:showToast
The minimum value for duration is 5000ms. If you gave value less the 5000ms value will be taken as 5000ms.
https://developer.salesforce.com/docs/component-library/bundle/force:showToast/specification
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
popup × 101visualforce × 39
javascript × 24
lightning × 19
apex × 17
lightning-aura-components × 13
jquery × 7
modal × 6
lightning-web-components × 5
page-layout × 5
button × 4
popup-window × 4
visual-workflow × 3
custom-button × 3
css × 3
lookup × 3
contact × 3
notification × 3
trigger × 2
lightning-experience × 2
custom-object × 2
controller × 2
picklist × 2
html × 2
map × 2