10 votes
Accepted

Javascript Remoting returning JSON with encoded characters. For example &amp

The RemoteAction framework auto-escapes the results by default, to prevent accidental XSS injections for developers using innerHTML to render the contents of a callback. This is a security feature, ...
Eric's user avatar
  • 54.1k
9 votes
Accepted

Use of Javascript Frameworks in Lightning Web Component

React (I assume other frameworks will also work, but I've only tested react) definitely can be used in LWC, but it's honestly quite a hack due to the limitations and constraints on the platform. ...
NSjonas's user avatar
  • 10.1k
9 votes

Modern JavaScript Frameworks (Angular Js, React JS ) within LWC

The short answer is Yes, you can use React and probably most other javascript frameworks inside of LWC. A very simply example of this would look something like this: import { LightningElement } from '...
NSjonas's user avatar
  • 10.1k
8 votes
Accepted

Native JS Map prototype is overwritten in Visualforce page w/ a header

There isn't any way to modify the JavaScript that the platform includes. Based on the approach described in “delete” - restore native function not working for changed prototype, how then? this ...
Keith C's user avatar
  • 136k
6 votes

Modern JavaScript Frameworks (Angular Js, React JS ) within LWC

This question has been asked at the Salesforce World Tour Paris, where some members of the LWC team were present, but without a clear answer. The question may be why should we use a framework besides ...
Mael Monnier's user avatar
5 votes

Redirecting to VF Page from Managed Package UI

Always use $Page global variable for redirection in a visualforce page. $Page.PageName if its outside namespace. or $Page.Namespace__PageName, if its inside. For accessing $Page in JavaScript ...
Raul's user avatar
  • 18.7k
4 votes

How to become productive with Salesforce SPA development quickly?

There are only a handful of things you need to know about Salesforce in the beginning. First, you should get an IDE: https://developer.salesforce.com/page/Force.com_IDE. Once you install the IDE and ...
Simon Fischer's user avatar
4 votes
Accepted

AngularJS router loads contet but does not change the URL in the browser

Remember that you are developing a "single page application" meaning that the URL in the browser needs to stay: /apex/NameOfYourSinglePage Angular routing can be then appended to the single page URL ...
Keith C's user avatar
  • 136k
4 votes

Use of Javascript Frameworks in Lightning Web Component

Salesforce has is a page dedicated to using SLDS with react: https://react.lightningdesignsystem.com/. But the case for using ext. JS frameworks in LWC will be left to you. Although there may be tens ...
Prashanth K's user avatar
3 votes

JS Remoting + Angular Ng-File-Upload

RemoteAction methods are not well suited for file uploads, which I found out by way of personal experience. The maximum payload is somewhere under 1mb, and with base 64 encoding, that's even less. ...
sfdcfox's user avatar
  • 487k
3 votes

How can I save a date field from JavaScript?

Date format for Salesforce should be in ISO 8601 format as yyyy-MM-ddTHH:mm:ssZ Try the following formatting in Angular Js {{item.date | date:'yyyy-MM-ddTHH:mm:ssZ'}} Update: For date try the ...
karthikselva's user avatar
  • 2,446
3 votes
Accepted

New to Using Remote Action with Angular JS

Short answer: you need to use $scope.$apply to force angularJs to reload the elements. So your code should look like this: $scope.ContactData = Visualforce.remoting.Manager.invokeAction( '{!...
Lance Shi's user avatar
  • 13k
3 votes

Is it possible to use Angular and still be Lightning ready?

You can use Lightning Components as a container for your angular applications but not use any of the other functionality they provide. Using Lightning as a container instead of Visualforce gives you ...
dsharrison's user avatar
  • 3,992
3 votes
Accepted

Is it possible to use Angular and still be Lightning ready?

If it is for lightning Ready badge for appexchange ,you do not need anything more except to use SLDS as a CSS skin .Take a look at this to understand what is lightning ready .It need not be true ...
Mohith Shrivastava's user avatar
3 votes
Accepted

Redirecting to VF Page from Managed Package UI

The issue here is that when you're opening an unmanaged page from a Managed package, the platform is assuming the namespace of the managed package should also prefix your Visualforce page. So, for ...
Phil Hawthorn's user avatar
3 votes
Accepted

Visualforce is not defined while using visual force remoting

You need to define a controller. Change: <apex:page showHeader="true" sidebar="true"> to: <apex:page controller="CaseDetailController" showHeader="true" sidebar="true">
Adrian Larson's user avatar
  • 150k
3 votes
Accepted

Help understanding a bit of Visualforce code

Your question is really about AngularJS not Visualforce. See the Angular currency filter documentation; the first argument (after the first :) is the currency symbol and the second argument (after ...
Keith C's user avatar
  • 136k
3 votes
Accepted

using Angular JS /REACT in LWC

Learning React or Angular will not directly help you learn LWC, nor will learning LWC help you learn these other two technologies. They are all just different enough that you'll find they are more ...
sfdcfox's user avatar
  • 487k
2 votes

"Error: [$parse:syntax] Syntax Error: Token ':' is an unexpected token at column" Angular with Visualforce

The way I solved it is to use a built in Angular directive that tells Angular to not parse that element. The directive is called ng-non-bindable. You can put it on any element that you do not want ...
Caspar Harmer's user avatar
2 votes

"Error: [$parse:syntax] Syntax Error: Token ':' is an unexpected token at column" Angular with Visualforce

This is a problem caused by AngularJS using jQuery and appears to be a known limitation (see issue 13771); jQuery treats colons as special selectors so ids with colons break the parser. Your options ...
Mike Chale's user avatar
  • 13.3k
2 votes

Installed ngForce but samples are not working.

It seams that the demos in ngForce project still rely on a previous version of ngForce with embedded jQuery, Bootstrap, angularJS, etc, but the latest ngForce does not embed those libraries in the ...
D G Barnes's user avatar
2 votes

AngularJS routing in VF page giving error

I resolved it by redirecting it from a button, actually i was trying to enter the url manually giving a '/#' tag in url.I guess thats may be the issue.
Ejaz's user avatar
  • 341
2 votes
Accepted

Application Cache Error event: Failed to parse manifest

So, while I was writing up code that demonstrates this, I found that Salesforce now includes a "view state" script that I couldn't figure out how to bypass. Thankfully, we can use # to cause the ...
sfdcfox's user avatar
  • 487k
2 votes

Application Cache Error event: Failed to parse manifest

The problem is that it is hard/impossible to stop Visualforce from outputting extra content. For example this: <apex:page contentType="text/cache-manifest" applyHtmlTag="false" standardStylesheets=...
Keith C's user avatar
  • 136k
2 votes
Accepted

Angular Visualforce is freezing in IPad

We've found the solution. I'm positing it in case other struggle the same issue. After opening a case, Salesforce told as that that was a known issue for them. It is caused by the version of ...
Martin Borthiry's user avatar
2 votes
Accepted

Change the code to reduce callback

I usually create a factory/service and keep the controller as thin as possible.The main reason is, angular controller's main work is to maintain the ViewModel and rather than worrying about the ...
Praveen's user avatar
  • 10.1k
2 votes

How to call a controller method from AngularJS

You can use javascript remoting function inside the Angular function:- $scope.my_tree_handler = function (branch,scope) { Visualforce.remoting.Manager.invokeAction( "...
Ashwani's user avatar
  • 22.6k
2 votes
Accepted

What are security review's policy regarding apps that rely heavily on the REST API?

Many Apps on The Appexchange use the REST/SOAP API, and have no issues with the security review. We have the following requirements: Use an OAuth Token. Don't steal the user's session Id and ...
Robert Sussland's user avatar
2 votes
Accepted

Angular js change type of input box

Your page is getting all the rows changed to the same type because you are assigning the type to the app's scope instead of the row scope. Think of your row as an object. That object needs an ...
Renato Oliveira's user avatar
2 votes
Accepted

how to retrieve the values from sforce.connection.query

If you do not want records which have null in RenterOfVehicleRegDocument__c field. You can change the query filter as: var Accrecords = sforce.connection.query("SELECT OwnerOfVehicleRegDocument__r....
Ashwani's user avatar
  • 22.6k

Only top scored, non community-wiki answers of a minimum length are eligible