Questions tagged [inputfield]

InputField represents an editable input for a field on a Salesforce object based on field type. For example, if fieldName references a date value, then a date field with a date picker is rendered.

Filter by
Sorted by
Tagged with
0
votes
2answers
196 views

Pass value of inputfield to controller

I have created a Vf page from which i need to fetch the value of new subcription type. I'm not able to pass the picklist value to the controller for creating a new subscription. I would really ...
2
votes
0answers
225 views

Visualforce apex:inputField and apex:detail with SLDS: on the roadmap or workaround?

Long waiting, but seems still no support for apex:inputField and apex:detail in SLDS. https://www.lightningdesignsystem.com/platforms/visualforce/ Does anyone know if that's on the roadmap or any ...
2
votes
1answer
832 views

What is the best way to mask Visualforce Inputfield?

Below is one way that we can do masking on input fields. Including below in apex page. <apex:includeScript value="{!$Resource.jquery}"/> <apex:includeScript value="{!$Resource.jMaskedInput}"/...
3
votes
1answer
2k views

reset lightning:input type number

I have one input field type number <lightning:input type="number" aura:id="userId" name="userId" label="User Id" value="{!v.MyUser.userid__c}" required="true" maxlength="10"/> After my ...
0
votes
2answers
541 views

Visualforce Page with Standard controller not updating parent record

I have a relatively simple VF page that is launched from a button on a custom object called 'Inclusion_detail__c. The page uses the standard Controller and is effectively a data entry form for ...
5
votes
2answers
607 views

ReRendered form with wrong data on inputFields dependent picklist

I have a Visualforce Page for QuoteLineItem multiple edit. It works as a shopping cart: the top section has the items already in the Quote, and in the bottom there are the available products from the ...
1
vote
1answer
45 views

InputFields don't appear on some parts of the page, even though they do elsewhere

I have a visualforce page which has a couple page block sections (under pageblock > form), and is meant to have inputs within those sections. For some reason, the input fields will appear in the first ...
4
votes
0answers
983 views

Lightning Components - <force:inputfield> Not working for certain field types?

Is force:inputfield not working for certain field types? I've put together a simple Lightning component I'm finding the following: Picklists - Are rendered as disabled (this is an issue I'm aware of ...
1
vote
0answers
576 views

Lightning Components - CSS classes not being updated on child components

I'm trying to create a simple section on a lightning component which will show either a force:inputfield or a force:outputfield depending on the "mode" attribute of the component. If the mode ...
3
votes
1answer
310 views

Set Two Different Values for the same field in a vf page via controller extension?

I am creating a visual force page where a user can log a completed task and set up a new one. I'd like to set default values for the Status to New for one section and Complete for the other. Is ...
1
vote
1answer
5k views

Problem with ui:inputText and ui:inputNumber : maxlength and restrict some characters

I have to use an input field, ideally an ui:inputNumber, so the user can only enter numbers. But I also need to put a maxlength on this field and this attribute does not work on ui:inputNumber. The ...
5
votes
2answers
289 views

Getting 'multiple items' error despite inputField lookup value being populated with Id in controller

Hello and thanks in advance for any help! I have a VF page with 2 lookup inputFields and a picklist (built as an inputField with dynamically-populated picklist choices). There is an actionsupport ...
1
vote
2answers
622 views

Unable to bind with <apex:inputField>

I have some VF code that is working - basically, I have a custom object form and I am updating the fields via components like this: <apex:repeat value="{!jewishEducationalHistoryFields}" var="...
2
votes
2answers
77 views

How to make an inputField required based on options from SelectList?

The ask is: If the user selects 'Declined', in the "Envelope Status" Select list, the inputField "Declined Reason" should be mandatory. I have basically tried everything that is available in ...
0
votes
1answer
24 views

custom obj which is list to Opportunity (Look up Relationship).costom obj when click check box automatically update the opportunity Handoff true

trigger UpdateHandoffAttached on topx__c (after insert, after update, after delete) { List<Opportunity> listoppUpdate=new List<Opportunity>(); List<Opportunity> listopp=new List<...
1
vote
1answer
896 views

VisualForce : Dynamically rerendered inputFields are displaying on page without labels

Background: I created a VisualForce page with the intention of embedding it inline into an Opportunity layout. I've used the standard Opportunity controller with a controller extension. On this ...
2
votes
1answer
1k views

Dynamic Visualforce Input Field

I am trying to make a dynamic visualforce input field. Actually, I have already made it before, however I am trying to clean up code so that I only need one input field per page. I have a table on ...
0
votes
1answer
62 views

Is it possible to set default value to default field?

Documentation says only about custom fields. And as I know I can not insert my custom js to default new-page. Any ideas?
2
votes
2answers
2k views

Uploading from SF to AWS S3: upload works but all files are empty

I've made a file uploader from SF to AWS S3. Everything works as expected except for the fact that the file itself in S3, despite its size reading correctly, is empty: public pageReference ...
0
votes
1answer
98 views

Getting value from javascript to apex:inputfield not worked after button clicked

in PDCReport I'm using Javascript function to fill date range based on picklist value, the picklist values are : "Current FY,Next FY,Next Month ......." the javascript function is called when the ...
0
votes
1answer
371 views

Change the value of the component variable used in the “AssignTo” attribute of the <apex:attribute> tag

I am running into an issue with a custom component I have written. The controller for the component has the following member: public String crmId { get; set; } This member is used in the component ...
2
votes
1answer
547 views

Picklist apex:inputField Inexplicably Renders as Disabled

I have an apex:inputField control bound to a field of type picklist on a visualforce page. Like so: <apex:inputField value="{!myObj.DependentPicklist__c}" required="true" /> Inexplicably it ...
4
votes
1answer
1k views

reCAPTCHA on Visualforce pgage

I've been looking for a way to implement reCAPTCHA or any type of CAPTCHA on a Visualforce form. It appears that reCAPTCHA has been updated since this posted Adding CAPTCHA to Force.com sites. Can ...
0
votes
2answers
633 views

How to use “hours” apex:inputField type of time

Is that possible to use only hours? below code I can have hours and minutes but I just need hours to display, is there any attribute that needs to set? Visualforce page: <apex:page controller="...
0
votes
1answer
355 views

Pass value of inputfield to controller without binding it to any object

I a div popup where there is an input field <apex:inputfield id="CommentDate" value="{!AModel.dateTimeofComment}"/> <apex:commandButton action="{!AModel.saveComment}"...
0
votes
1answer
401 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 && window.event.keyCode ...
1
vote
0answers
126 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
696 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" rendered="{...
-2
votes
2answers
1k 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. <apex:...
0
votes
2answers
96 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, ...
1
vote
1answer
100 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
2k 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 ...
9
votes
4answers
8k 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: '...
3
votes
0answers
2k views

Lightning Components: Using <force:inputField /> on a Lookup only works partly and use slds-input class override with default

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 ...
5
votes
1answer
2k 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 ...
3
votes
1answer
360 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
176 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: [...
2
votes
1answer
2k 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
864 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
1k 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
715 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 ...
1
vote
1answer
1k 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
583 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
1k 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
64 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 id="...
2
votes
2answers
2k 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
435 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
777 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 ...
1
vote
1answer
374 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
2k 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 : <...