JavaScript remoting in Visualforce allows you to call methods in Apex controllers from JavaScript.

learn more… | top users | synonyms (2)

0
votes
0answers
5 views

Call a Salesforce Remote Action Method from JavaScript?

I am creating my UI with React JS and have to call a Salesforce Remote Action from React file. React JS bundles everything into bundle.js and this will be added in a VF Page as an external JS file. ...
2
votes
2answers
23 views

How to move Remoting apex to static resources

I'm developing a Managed package and just started to move some code, I noticed some of my javascript functions are exposed in the code, I would like to move all that code to static resources leaving a ...
1
vote
1answer
33 views

Trouble updating a Javascript array from Apex controller via Javascript Remoting method

How can I update this javascript array using JS Remoting? var data = []; Visualforce.remoting.Manager.invokeAction('{$RemoteAction.myController.myMethod}', function(result, event) { if (...
1
vote
1answer
29 views

update value of <apex:repeat>

is there any possibility to update list to iterate in apex:repeat markup? I tried to do this in javascript, but without success. I have some data in JS by calling externall service, and after that I ...
1
vote
1answer
14 views

Execute Controller Method During window.onbeforeunload event

I have a visualforce page that runs calculations and stores them in an sObject as "temporary" until a user clicks a Save button, which removes the temporary flag. This was done because the ...
0
votes
0answers
24 views

How to get field API name as a label in VF?

I am trying to do something like this <script> window.$Label = window.$Label || {}; $Label.SuppressAutoLink = '{!JSENCODE($ObjectType.CustomObject__c.fields.CustomField_c.Name)...
-1
votes
0answers
23 views

upload 25mb file attachments to salesforce using JS Remoting [duplicate]

I want to upload 25mb file attachments to salesforce using JS Remoting. How can I do so?
0
votes
0answers
25 views

how to overcome 120 sec timeout in JS remoting

i did try below solution, Visualforce.remoting.timeout = 120000; I am still getting the timeout issue. The remote method is hardly 40 lines code and is optimized also i am not making callouts in ...
0
votes
0answers
23 views

Calling Webservice class using java script button of managed package from another managed package

I have a tricky situation here We have one managed package in which we have one web service class I want to call that web service class from JavaScript button that button will be in another managed ...
0
votes
0answers
32 views

How to create a cascading drop down list using javascript remoting and apex salesforce

I have a requirement where i have to show cascading dropdown in salesforce. I am showing salesforce objects in a dropdown list, on the selection of particular object, its field will be populated in ...
4
votes
0answers
61 views

Error parsing json response: 'expected expression, got '<''. Logged in?

I'm calling a remote action which returns a wrapper. It works without any issues on most of the time. But sometimes, it throwing an error: Error parsing json response: 'expected expression, got '&...
0
votes
1answer
40 views

Javascript remoting handle Asynchronous calls [closed]

This question may be simple for many, but I'm unable to understand how the asynchronous calls work. I have a page where I'm making the javascript remoting call, now how long would it take for me to ...
2
votes
0answers
38 views

Salesforce Optimistic Record Locking and JavaScript Updates

Is there a way to implement field only updates for Salesforce? Even if fields could be updated concurrently through JavaScript/JavaScript remoting calls, would Salesforce still save the record using ...
1
vote
2answers
70 views

Creating records using Remote objects

Can we create multiple records at a time using remote object create() call? If yes what is the syntax? I tried passing a list of objects to create call but it didn't work.
1
vote
1answer
43 views

How do I validate a input-text field in an Apex Repeat tag by alerting on click of a button if its empty or not?

TEXT FIELD: <apex:repeat value="{!TransTerms }" var="tms" id="repeatTag" rendered="{!showApproval && readOnly == false}"> <div class="textinput" id="inner-div-tc"> <apex:...
1
vote
1answer
28 views

Simple Question about javascript remoting

i have a JavaScript array and i want to send it as an argument to a remote method using javascript remoting , here is the javascript array: var quizQuestions = [ { type: "multiple",...
0
votes
1answer
43 views

Input values are not being stored in the controller (Javascript Remoting Help)?

Forgive my incompetence...I have a visualforce "Wizard" I had working relatively well but I have had to change some key functionality to use Javascript to call a Web Service API and return some values....
0
votes
0answers
39 views

Code from workbook does not work in my Org

In Visual force workbook, I have task to integrate google maps with a VF page. If you are aware of work book excersice at pg - 53 https://resources.docs.salesforce.com/sfdc/pdf/workbook_vf.pdf I have ...
1
vote
1answer
29 views

Aborting Javascript remoting

I have a javascript remoting method which is called on keypress in an input box, but when the new call is made, is it possible to abort the previous processing? Please let me know if we can achieve ...
2
votes
1answer
72 views

Site.changePassword returns null when called using javascript remoting

My Use case is: As a CustomerCommunity user, I want to login and click on change_password link that redirects me to change_password page in AngularJs, which calles the changePassword method using ...
1
vote
1answer
135 views

JS Remoting + Angular Ng-File-Upload

I was wondering if anyone had any examples using AngularJS + NgFileUpload and a @RemoteAction that handles base64 encoded file-data to create a drag & drop uploader? I have JS handler that works ...
18
votes
1answer
198 views

Parallel Execution of JavaScript remoting calls

I was hoping to be able to fire off multiple JavaScript Visualforce remoting calls in parallel and have the execute simultaneously, and for me to deal with the responses asynchronously. Whilst in ...
0
votes
1answer
40 views

JavaScript remoting reloading page

I'm trying to use JavaScript remoting and everytime I hit enter page refreshes. How do I stop it? Below code throws alert "enter" and reloads immediately even before I acknowledge alert. Please help ...
1
vote
0answers
52 views

How can I display an expansion icon only if nested(child) records exist

I'm trying to implement Daniel Hoechst's 'Datatables in Visualforce' to turn a plain html table into a functional datatable. The table displays uses js remote objects to display Account records and ...
3
votes
1answer
75 views

Confused about Visualforce Remoting, inconsistency?

Callback functions have been behaving very strangely and I am not sure if I am getting this correct. I have a remoting function which is update records in data base and have just kept a alert on the ...
1
vote
0answers
55 views

How can I place an Extjs app in SFDC visualforce page (built with sencha Cmd 6)?

I created an app using sencha Extjs, and built it with Sencha Cmd v6.0.1.76. I created a object that handles calls to the @RemoteAction methods in the controller of the vfpage, and locally it works ...
1
vote
0answers
27 views

Child relation is 'not a column" in Javascript Remoting

I'm running in to an issue where an object fetched from Salesforce through JS remoting is not able to be sent back because it has a relation field. This is the setup: A function retrieves a wrapper ...
4
votes
1answer
50 views

Bad practice to invoke RemoteAction on page load? From Static Resource?

I'm working with a page that is a container for a single page app. <apex:page> <div id="root"></div> <script src="{!URLFOR($Resource.javascriptResource)}"></script&...
0
votes
0answers
35 views

Calling controller method on window.unload

Can we call controller method (VF remoting or Action function) on window.unload event without using return statement. I have a requirement that updates a record when window/tab closes.
0
votes
1answer
61 views

Popup appearing twice and data not appearing in pop up

I am using, JS, HTML as well as Apex to dynamically create a grid where each row has an edit link. The edit link on click opens up a pop up which is basically an apexform.Now I am facing two issues: ...
1
vote
2answers
266 views

Get value from Javascript function, pass to controller

I'm trying to create an integration with Plaid and they have the following script that runs to get variables from their service. I need to be able to capture these outputs and pass to my controller to ...
0
votes
1answer
62 views

Jquery validator with javascript remoting

I have an input field out of several on a form, whose value needs to be validated against database values. I am using jquery validator to perform all other validations and trying to achieve database ...
0
votes
3answers
110 views

Javascript Remoting running on mobile device always get VFRemote.js.map 503 (Service Unavailable)

I am using javascript remoting for a visualforce page to save some data, everything works as expected on desktop/pc (none of the errors below occured), but just not mobile device(using iphone 6 plus ...
1
vote
0answers
22 views

Javascript remoting browser issue

I'm having an issue with javascript remoting that works in Chrome but fails in IE and Firefox on multiple machines. This used to work however. Below is the simplified code and I can confirm in debug ...
1
vote
2answers
247 views

Retrieve Picklist values when using Visualforce Remote Objects

Is there a way to get all Pick list values for a custom field / object using Remote Objects? I have looked at the docs, tried querying the fields but not sure how I can do this. Any guidance or ...
2
votes
1answer
149 views

How to create case using Sforce connection

Javascript <apex:page standardController="case"> <script type="text/javascript"> function insertcase() { alert('came'); var con = sforce.connection....
0
votes
1answer
38 views

What is the best approach for retrieving data and/or configuration on page load to be accessible by scripts?

I'm building all of my pages using the SPA (single page app) approach lately. I have typically been following this general model for doing so: My page: <apex:page docType="html-5.0" showHeader="...
2
votes
1answer
37 views

Debug logs not showing for VF Pages on site community

We have a site of type community with custom domain(that ends with Force.com) and there are couple of VF pages(PageA & PageB) on this community. When a community user logs into our application(...
1
vote
1answer
222 views

Angularjs not rendering with Visualforce Remoting

I am not sure where the error is but my angularjs is not being detected. Below is my HTML and Angularjs <apex:page controller="ApexRemoteInvokeManagerController" docType="html-5.0" sidebar="...
0
votes
1answer
47 views

what css framework suits better for embedded js applications?

I have some embedded js application consuming remote scripts from Force.com, right now I'm using bootstrap but it has a lot of conflict with the Force.com default css. I want to know if there is a css ...
3
votes
1answer
141 views

Remote Objects and Master-Detail - Can't create child records

I have a Master Object A... ...And a Child Object B with a Master-Detail field A__c pointing to A... ...I'm trying to create a B record, child of a pre-existent record A using Remote Objects... ......
7
votes
1answer
210 views

Dynamically get required fields with JS Remote Objects

I'm designing a VF SPA that uses remote objects. Much of the page is dynamic, and I use user input to define which sObjects I look up. I wanted to know how, given a user input for a sObj, I can return ...
0
votes
1answer
84 views

Is it possible to make a synchronous Visualforce remoting call?

I have a VF page where i need to make synchronous call.Is there any possibility for making Visualforce remoting call synchronous.
1
vote
1answer
181 views

How does Visualforce page respond to submit form event

I used a plain html button tag in my Visualforce page to call my javascript remote action. The html code looks like this: <div class="button-group"> <button class="primary" type="...
0
votes
0answers
51 views

how can i do a javascript substring to retrieve all the values and add it to drop down

i have a string var str = [Sys[a="Horizon",b="test"],Sys[a="Horizon1",b="test1"],sys[a="Horizon2",b="test2"]] i need to extract the value of all "a" inside str and add it to my drop down list. ...
3
votes
1answer
121 views

Update Remoting Credentials Without Reload

I've got a native iOS app that uses a WKWebView to display a Visualforce page. This page makes extensive use of remoting, and currently I'm trying to determine a strategy to deal with session timeouts:...
0
votes
1answer
270 views

Jquery Datatable with delay

I'm trying to use JQuery DataTables with Salesforce JavaScript Remoting. Is there a way to delay datatables initialization? I want to do that otherwise datatables think there are no rows in the table. ...
0
votes
0answers
127 views

export div contents to excel and pdf with html

I have a div (id=divtable) with number of records in table. I want to export whole table or div whichever is easier with CSS. So far I have code to export it to excel but I don't get html formatting ...
1
vote
1answer
179 views

Date formatting when using JavaScript Remoting

I have a JavaScript remoting method that gets a List of custom objects with date. In my JavaScript method, I loop through the above list of objects and print them in a table. For Date__c though I get ...
0
votes
0answers
61 views

Remote Action not working in safari browser?

I have remote Action in javascript which is working in all browsers but not in safari browser. Here is the code snippet below . i have table with delete action,when i click the delete link ,it will ...