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

learn more… | top users | synonyms (2)

1
vote
1answer
23 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"> ...
1
vote
1answer
23 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: ...
0
votes
1answer
13 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 ...
0
votes
0answers
29 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
20 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
27 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
49 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 ...
10
votes
0answers
82 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
30 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
28 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
68 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
37 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
22 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
42 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 ...
0
votes
0answers
19 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
47 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
128 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
44 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
76 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
19 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
127 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
70 views

How to create case using Sforce connection

Javascript <apex:page standardController="case"> <script type="text/javascript"> function insertcase() { alert('came'); var con = ...
0
votes
0answers
25 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" ...
1
vote
1answer
28 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 ...
1
vote
1answer
137 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" ...
0
votes
1answer
45 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
98 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
144 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
61 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
147 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" ...
0
votes
0answers
43 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
74 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 ...
0
votes
1answer
183 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
110 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
90 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
43 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 ...
1
vote
1answer
181 views

Salesforce JSON parsing error

I am having issues with JSON parsing. Here is my controller method: @RemoteAction global static String GetDetails(string sName) { //do soamething with sName later ...
1
vote
1answer
61 views

Calling a @RemoteAction method from a class that is NOT your controller

I keep getting an error that the @RemoteAction method I'm calling doesn't exist. Here is the error text: No remoted actions found to resolve '$RemoteAction.FileRemoting.rename_file' It does ...
0
votes
0answers
109 views

Multiple marker on google map not working

Vf Page <apex:page standardController="Hotel__c" extensions="HotelList" sidebar="false"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> ...
0
votes
1answer
67 views

Javascript in place of apex:page action - JS remoting

I want to know if I can use javascript in place of apex:page action. I am implementing js remoting in my vf page. I am going to add @remoteaction before my pagereference method in controller. I also ...
2
votes
1answer
34 views

Add a job to the joblist in Visualforce page

I am having a list of jobs in the Visualforce controller. And in the page, I have a button called Add job, which adds another job into the list. What it current did is using an actionFunction for ...
1
vote
0answers
53 views

Copy Data from one field to another on fill via remote action

I have a field which is an autocomplete and data is fetched to it by remote action. I want when that field will get populate, the below text field should filled up with same data and if we add same ...
0
votes
0answers
22 views

Add attachments from a public site using site.com studio

we have a public community created with CMS tool site.com studio (just because client requirements). This site have a form on it, to get customer data, but now client want to add attachments into a ...
0
votes
1answer
28 views

Many ajax requests or load data one time in browser?

I am interested in the best practice for an autocomplete service I am working on. Is the best practice to make many ajax requests or to load data one time when the page loads? The data consists of ...
3
votes
1answer
245 views

JS remoting not working with Angular code

I am trying to do a simple remoting code base along with auto update to angular table. BUt if I call a remote method as it is async, it gets called late and even though I try to push data in my ...
2
votes
0answers
142 views

JSON.serialize results in System.JSONException: Salesforce System Error

This is just a test page. I want to send Javascript object into Remote Method and save it as JSON string, but it keeps failing with this error. Any help is appreciated. Visualforce page ...
3
votes
0answers
76 views

Calling APEX out of JavaScript the APEX-API Version is ignored

I run in an issue with calling APEX out of JavaScript, when i call my APEX class, the class is executed with API-version 34.0, but in the metadata of this class is the API-version set to 27.0. I need ...
1
vote
1answer
101 views

Remoting request invalid for your session error for just one machine

One of our testers is getting this error when doing a javascript remoting call: Visualforce Remoting Exception: Remoting request invalid for your session. But interesting part is I used the ...
13
votes
3answers
476 views

What is the correct way to send an Apex type containing DateTime members to RemoteActions?

Update: this is only an issue with a concrete type in a custom class. I implemented the same pattern with the Contact sObject containing a DateTime field, no exception thrown. Code below and the ...
2
votes
1answer
152 views

best practices for javascript remoting for controller classes

Most of the pages in our application have been built using HTML5/CSS/Bootstrap/Javascript Remoting/JQuery/AngularJS. Their controllers have most of the methods with @RemoteAction and other static ...