6
votes
Accepted
How to avoid page reload on standardController standard action (Save)?
try action="{!quickSave}" Standard Controller action
4
votes
Accepted
Confirm Dialog Box On Detail Page
There is no exact and simple solution for this OK and CANCEL in Confirm Popup using javascript. But you can do this with the help of JQUERY. Try the below link to understand better...
https://...
4
votes
Accepted
Problem with passing parameter through URL to an LWC present inside a lightning tab
You should use a namespace prefix for your query parameter. If the component isn’t part of a managed package you should use c__ as prefix.
So the button url would be /lightning/n/Cops_Rate_Profile_Tab?...
4
votes
Accepted
Why do changes to the Contact Name Highlights Panel not appear?
In Lightning Experience, what you see in the Highlights Panel is controlled by the Compact Layout. Go to Setup | Object Manager | Contacts and locate Compact Layouts on the menu, then create a new one ...
3
votes
Accepted
Problem with the onclick javascript for this button or link was encountered unexpected token
Given that your code doesn't have any obvious syntax errors, I suspect it's one of your Custom Labels havng a ' in it, causing the syntax error. Always encode your merge fields when they may have ...
3
votes
Accepted
Account detail page not showing Copy Billing Address to Shipping AddressAddress Information link in Ligthning
Knowledge article: How to show the Copy Billing Address to Shipping Address link when editing Contact or Account records? says:
This is only applicable in Classic User Interface and not in ...
3
votes
Accepted
Onclick javascript button click show available records of custom object
Please create a Custom button on the Object where you want to show all records and below is the Code for the custom button:
{!REQUIRESCRIPT("/soap/ajax/32.0/connection.js")}
// Quering the database ...
3
votes
Lightning modal without shaded backdrop behind
Here is the proper way to use modal in salesforce lightning component
in component
<lightning:button label="Open Modal" onclick="{!c.openModal}" />
<div role="dialog" tabindex="-1" aura:id="...
2
votes
Insert record to a different object cloning data from detail page
Looks like in your javascript you've missed {! } when referencing Form_Requests_abv__c.id
Try this one:
var query = "SELECT Account_abv__c ,Address_abv__c,Form_Request_abv__c,
OwnerID, ...
2
votes
Accepted
If statement fails in Onclick javascript button
Can you please try below code, if the check value is coming as true from check=sforce.apex.execute("CheckAOCAccess","AOCAccess",{LoggedUser:"{!User.Id}"});
if(check=='true'){ // This line fails to ...
2
votes
Accepted
Trying to rerender a pageblock in a visualforce that is present on a detail page
I created a simple example in my developer edition org and it is working:
conRelatedList.page
<apex:page standardController="Account" extensions="ConRelatedList">
<apex:form>
...
2
votes
Add Some Text message on top of standard detail page using JavaScript No VF Page
Unfortunately thats not possible using pure JavaScript Solution.
You have two options here:
Use the Visualforce page option.
Create custom detail page using apex:detail tag and then add your custom ...
2
votes
Accepted
Auto populating the fields in lightning
This feature will become available in Lightning in Spring '20. From the linked release notes:
How: To construct a custom button or link that launches a new record with prepopulated field values, ...
2
votes
Related List is not showing up...?
I found out what was causing the issue!
As I was creating the related list object, I made the development status in 'In Development' instead of 'Deployed.' That is why only the 'System Administrator' ...
2
votes
Accepted
Send a link that redirects back to the Detail page of the Object
Please drop a Salesforce link into your body details as follows,
//set email content
mail.setSubject('Fill your KYC Details for Verification');
String body = 'Dear ' + cus.Name + ', ';
...
1
vote
Accepted
Create record from view in background
Presenting my comment as answer:
You are using the standard createRecord event whose default behaviour, which we cannot change - handled by one.app container, is to naviagate to record after creating. ...
1
vote
Accepted
Task description field not available for page layout
The 'Description' field in task is labelled as 'Comments' and its available to be added in the page layouts.
For more details check the link
1
vote
Data not visible on formula field on Object Detail page
Your question is indeed quite generic.
I believe that if you reference a cross object field in a formula field, users will be able to see the value of the formula field even if they do not have ...
1
vote
Accepted
Task details don't show a field if another field is present
I can think of a way around for your problem. There is always an option to create custom Lightning Component to achieve your ask, but you can do it using point and click option using related record ...
1
vote
How to build Custom Record Detail Page using lightning components
You can use lightning:recordViewForm which displays one or more fields, provided by lightning:outputField.
A lightning:recordViewForm component is a wrapper component that accepts a record ID and ...
1
vote
Light record details functionality
You can't split the record detail into two tabs. You can add multiple record detail tabs but essentially you will be seeing same fields in both the tabs.
From the above picture you can see that you ...
1
vote
embed lightning component in detail record page
1.In Lightning Experiance using APP Builder you can do it. refer this link for more details
2.In Salesforce classic you may use Lightning out i.e Embedd Lightning component in visual force page ...
1
vote
Accepted
Onclick Javascript fails identify Resultset
Your current main error is this line here:
var count = sforce.connection.query("SELECT COUNT(*) AS total FROM Contract_vod__c WHERE Signature_Available_abv__c = false and Account_Name_abv__c=:"+{!...
1
vote
Accepted
Static gauge data in Visualforce page
As per Salesforce docs in Data field:
Specifies the data binding for the chart. This can be a controller
method reference in an expression, a JavaScript function, or a
JavaScript object. In all ...
1
vote
Accepted
How to change language of Custom Button on Page Layout according to the User Language?
You need to translate Custom Button Label.
Navigate to Setup-> Translate and then perform following steps,
Select Language
Select Setup Component as "Button and Link Label"
Select Object
Provide ...
1
vote
Lightning modal without shaded backdrop behind
In your component's CSS file:
.THIS .slds-backdrop {
background-color: blue;
}
1
vote
How to add inline visualforce page in edit view of contact object?
The idea was flagged as delivered to close the comments for the idea. This is a relatively unusual situation, but the idea has not been "delivered." The comment from the PM basically suggests that ...
1
vote
Accepted
restrict the Standard buttons on a standard page to be on top only
As you tagged this question to visualforce you can do this with custom page as below. For standard pages I do not think it is possible.
I believe you are using <apex:pageBlockButtons> for ...
1
vote
How to avoid page reload on standardController standard action (Save)?
Put rerender="nothing", where "nothing" is an invalid element Id if you don't want to rerender anything on the page. Also, make sure you override the Save method and change the return type to be void ...
1
vote
Accepted
Error to populate lookup field onclick javascript
Remove all document.getElementById('{!Form_Requests_abv__c.Form_Template_Name_abv__c}');
and add like this
SampleFormTrans.Product_abv__c='{!Form_Requests_abv__c.Product_ID_abv__c}';
this will ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
detail-page × 61visualforce × 18
custom-button × 13
apex × 10
javascript × 10
onclick × 6
lightning-aura-components × 5
lightning × 5
custom-object × 5
page-layout × 5
related-list × 3
button × 3
url × 3
inline × 3
detail × 3
lightning-experience × 2
picklist × 2
account × 2
sharing × 2
tasks × 2
rerender × 2
inline-visualforce × 2
custom-link × 2
trigger × 1
lightning-web-components × 1