The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
21 views

onkeypress=“” affects other fields. How to restrict?

This is my page: and to simplify the search my apex:inputText defines: onkeypress="return searchOnEnter(event);" function searchOnEnter(event) { if (window.event && ...
1
vote
0answers
24 views

Unless the input field is rendered this code does not work - not sure why?

I have some VF code that looks like this: <apex:outputPanel styleClass="grey" layout="block"> <apex:pageBlockSection title="Flexible Pricing" columns="2" id="FlexPricing"> ...
0
votes
0answers
21 views

Pass a value from parent page to popup to controller

I have the following piece of code in a component <apex:pageBlock id="Panel"> <apex:pageblocktable value="{!Model.PAList}" var="pA"> <apex:column width="28" ...
0
votes
0answers
14 views

Set default value for country code on custom VF page [duplicate]

I have a cutom visualforce page with an input field for Contact's country code. When I visit this page as a guest customer community user, it defaults to the US, but as a logged-in user, it defaults ...
-1
votes
2answers
82 views

Apex input field of Type lookup is taking “Name” instead of “ID”

I have a inputfield of type lookup. It should contain Id of the reference Account but it takes the Name. Alert is showing name of the Account, where it should return Id. Please Advise. ...
0
votes
0answers
40 views

Pass input field lookup value to standard controller

I have below Page code which I am unable to put values to the new record instance that gets inserted with commandbutton click. Can someone please let me know? Apex page <apex:page ...
0
votes
0answers
60 views

Date/Time input field

I am using Date time field. <apex:inputField type="datetime" value="{!ss.startDT}"/> When I save or do some operation The format gets changed when value is selected When Page gets refreshed ...
0
votes
0answers
22 views

Lookup inputfield in Visualforce with multiple item match

I have a visualforce page with a user inputfield (lookup) and is bind to an object at the controller. Whenever there are multiple matches to my search text, the first item in the list is always ...
0
votes
2answers
43 views

display fields from table and display as a textfield,with condition

I have fetch the data using query from apex.from two obeject with look up relation query is setCon = new ApexPages.StandardSetController(Database.getQueryLocator([SELECT ProgramName__c, ...
0
votes
1answer
93 views

Accessing custom object fields on visualforce page from custom controller

I am writing a custom controller and a visualforce page to take the input data from vf page and process the logic in controller. Here in vf page I am trying to pass two data values of different ...
1
vote
1answer
29 views

How to handle multiple input/output tags with the same fields in VisualForce

I have created a VisualForce page that is basically a wall of inputFields. I had a requirement to make all of the inputFields into outputFields when a certain event happens (the event happens, all ...
0
votes
1answer
223 views

Passing Picklist Values to Controller with InputField in VisualForce

I'm new to VisualForce and trying to figure out how to pass the values a user selected from a birthday picklist into my controller. The picklists are fields of my Contact object and one is dependent ...
7
votes
2answers
916 views

How to use <force:inputField> and <force:outputField> inside an <aura:iteration>

Here @Peter describes a very cool way to use a <force:inputField ... /> together with <aura:attribute name="YourObjectType" type="YourObjectType" default="{ sobjectType: ...
2
votes
0answers
244 views

Lightning Components: Using <force:inputField /> on a Lookup only works partly

Using a <force:inputField value="{!v.account.ParentId}" /> seems to have flaws running in a Lightning Community Issues Rendering: wrong/missing styles Link "Find more results" does not work ...
3
votes
1answer
290 views

How to populate picklist values in Lightning Componets according to the metadata definition?

In Visualforce, we didn't thought much about picklist-values (=options) on simple CRUD UIs - they where simply there using an <apex:inputField ... /> Now in Lightning I found this documentation ...
1
vote
1answer
76 views

Is there a way in Lightning to get a dynamic input type like <apex:inputField /> in VF

In Visualforce I loved it not to think about types of input-fields and go instead totally blind with an <apex:inputField ... /> letting the platform bother if a field is a textfield, checkbox, ...
2
votes
1answer
37 views

What is the proper API format for submitting compound fields?

I'm using the Salesforce SOAP API via the PHP library and trying to figure out the proper format to submit an Address compound field type. I've tried submitting as an associative array: ...
0
votes
0answers
42 views

Visualforce Alignment missing when Dependency picklist are added to page

Hi Friends Thanks in advance I have created Visualforce page with Dynamic multiadd functionalty, I have given Field dependency picklist values but I am facing some issues like • Field alignment ...
2
votes
1answer
275 views

apex:InputField Equivalent in Lightning framework

I am new to Lightning framework. I imported lightning design system files into the visualforce page. Now I wan to use apex:inputfield with lightning design. I don't want to use html tag because I ...
0
votes
2answers
109 views

Visualforce inputfield focus by keypress

I wanted an expert's advice on how should i bind my input text field to a particular keyboard keys (Ctrl + P) such that the text field gets in focus. Also, how should i make dynamic growing text ...
3
votes
1answer
227 views

Issues saving apex:inputfield values to object in controller. Only last field on form saves value

Here's my issue: As per code below, I am trying to display a number of fields dynamically and then allow the user to enter values and save the record (or update it if they are viewing an existing ...
1
vote
2answers
142 views

apex:inputField not working properly on Salesforce1 lightning app after clicking on it

I created a simple Lightning Salesforce1 app based on a custom VF page. App is done for iPhone/iOS devices. Among others, in this VF page I added an editable box using the apex:inputField method, so ...
0
votes
1answer
191 views

Please , how to retrieve line items to Visualforce Email Template?

I try to create Visualforce Email Template in order to send our Purchase order (BC) to the supplier So I need to insert inside the mail , all (BC line items ) I begin to create HTML+CSS code , ...
2
votes
1answer
191 views

Visualforce inputfield for lookup not displaying clear icon

I've added a custom field to the Case standard object which is a lookup to Account, named Site__c When I create a visualforce page to allow for editing of the Site__c and Account fields on a Case, ...
3
votes
3answers
250 views

Show validation rule error next to the multiple field

The below validation rule works fine but I'm curious to know how can I show the required error message next to the field? As you can see below I have multiple fields and I have selected to show the ...
1
vote
1answer
47 views

Custom object isn't populated on Visualforce

i'm trying populate the fields of a custom Object. The object are being create but the informations used with InputField doesn't populate. Fragment of Visualforce <apex:actionRegion ...
2
votes
2answers
664 views

Lookup field not populating on Visualforce page

I have a custom visualforce page and controller and am attempting to populate a lookup field on that page. Often the lookup will contain a value already, and I would like for the value to . According ...
2
votes
1answer
117 views

Error: Number is too large in inputField

I have a VF page where I am retrieving Employee records (detail) when clicking on particular Department (master) name using CommandLink. The records are retrieved using repeater. The thing is, ...
1
vote
3answers
211 views

Change focus away from date field in visual force page

I've tried using other code suggestions to change the focus to another field: document.getElementById('{!$Component.fOpportunity}').focus(); and changing the focus on load: <script>function ...
0
votes
1answer
94 views

Rerender after inputfield is filled

Right now, I have a VF page in which I need to pass at least one object to get a list from SF. The context: An application that is used to monitor bikes that are used by clients going from one point ...
1
vote
1answer
780 views

visualforce action support rerender not working

I am trying to display a field when the value in select option changes. The code is not executed when any change happen, because i am checking the value with status. My code : ...
2
votes
0answers
67 views

Why does this input fields conflict with each other?

I have two components that are conflicting with each other: component1: <apex:component > <apex:attribute name="cntact" description="A Contact for the component." type="Contact" ...
1
vote
0answers
43 views

Standard DatePicker always set empty

We have some date fields in VF pages which were working fine. Suddenly some of them are not working. When user select the date from date picker, always it sets empty string to the textbox. ATM ...
2
votes
2answers
1k views

How to improve inputField alignment and width in Visualforce?

I am displaying inputFields in a pageBlockSection. Input fields do not seem to be aligned properly. I see fields of different sizes. They are only left aligned. Right side is varying. How to align ...
4
votes
1answer
3k views

Create VisualForce input that uses Lookup popup

I have a custom object, Foobar__c, and I would like to create a VisualForce page containing a form in which the user has to select a Foobar__c via the standard Lookup popup for Foobar__c. I would ...
0
votes
2answers
1k views

Pass inputField value to controller before a record is created/ saved

I'm trying to get the value of an apex:inputField on my vf page before the a record is saved/inserted. Here's my scenario. The user is presented with a blank form (all input fields on the vf page ...
2
votes
1answer
632 views

VF component dynamic inputField

I have the following component, <apex:component > <apex:attribute name="label" description="This is pretty name for this input" type="String" required="true"/> <apex:attribute ...
1
vote
2answers
153 views

VF component inputField

So I have the following componenet, <apex:component> <apex:attribute name="label" description="This is pretty name for this input" type="String" required="true"/> <apex:attribute ...
1
vote
0answers
476 views

Date and Number locale problem on html5 input type=date/number

Question Is there any chance to send data in generic date format (yyyy-mm-dd) in standard save method? I need to user apex:input type="date" (or number). But Salesforce save method is not ...
0
votes
1answer
843 views

Issues passing value from javascript/jquery to controller using hidden input

below is my code: public with sharing class myController { public String passedInString { get; set; } public PageReference passedInValue() { system.debug('Passed in value: ...
1
vote
1answer
324 views

Prepopulate visualforce picklist and checkbox from URL parameter without custom controller

I am trying to pass a number of parameters to a form using javascript and was successful following the post here: Prefill visualforce inputfield from URL parameter without custom controller ...
0
votes
1answer
1k views

Using Bootstrap with Visualforce Lookup field

I'm using a prefixed version of Bootstrap to create a Visualforce page where you will lookup a User with a jQuery autocomplete component. The component autohides the SF standard lookup features. I'm ...
4
votes
1answer
303 views

User input to an array in Visualforce

I have a Visualforce page that collects user input for 125 integer variables that are then used by the controller to create records. I'd rather use an array instead of defining all those variables, ...
2
votes
2answers
116 views

Populating standard name field with a case number

I am trying to populate the standard name field of an object with the case number. I have tried to use an apex class to accomplish this. Here is the code I used: GW_Volunteers__Volunteer_Job__c ...
0
votes
1answer
205 views

Lookup Window From SelectList Option

Here's the deal: I have a search field that searchs the object selected from the list, presenting the results below in a table. But in my next step, i want to add the lookup icon next to the text ...
1
vote
2answers
76 views

Saving an empty Rich Text Field, but it is returning <br> in the UI

I have recently added a Rich Text Field to an object, the field is not mandatory when creating a new object. It has a minimum character limit of 10 (I'm not really sure what the character limit is for ...
4
votes
1answer
2k views

how to use apex:inputField type of time

According to the docs on apex:inputField: http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_inputField.htm I can use type="time". However when I try this with a date-time field ...
1
vote
4answers
4k views

how to show the validation error below the input field in VF page

I have used the following code for the email validation and the validation is working fine but I would like to show the error like the the image. how to do that? My Code: <apex:pageBlock ...
1
vote
2answers
130 views

Removing inputField causes visualforce page to error out

I have created a page and am currently converting the page to use bootstrap. I was using an apex:inputField and nothing is wrong except that inputField does not accept disabled as an attribute. So I ...
2
votes
1answer
1k views

use bootstrap tooltip with apex:inputfield

I have a visualforce that I have built using bootstrap 3.2 but I want to enable a tooltip on one of the input boxes. I have not been able to make this work yet. Does anyone know how to do this? I ...