Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [inputtext]

The tag has no usage guidance.

0
votes
1answer
21 views

Set Text 'Not Attempted' in Date field

Is it possible to input a default 'text' to a Date Field. which will change to a date as soon as the person attempts something
1
vote
1answer
42 views

Apex Inputtext not getting assigned to variable in apex controller

I have below pageblocksectionitem in VF Page. <apex:pageBlockSection showHeader="false" columns="2" id="blockseciframe" > <apex:pageBlockSectionItem > <apex:...
0
votes
2answers
200 views

Add increment step in lightning:input

I am trying to add a counter functionality in lightning:input like this guy has done for input tag. I have written following code: <div class="uiInput uiInputNumber uiInput--default uiInput--...
1
vote
2answers
35 views

How Do You Prevent Action Repeat (i.e. Send Email Again) When VF Page is Refreshed?

If I send an email from my VF page - via inputTextArea, commandButton and MassEmailMessage - and then refresh the page, the email gets sent again. How do I prevent this? Please review my code below. ...
0
votes
1answer
29 views

Compare What User Typed in VF inputText with JavaScript

In the code below, I need to be able to use JS to call renderResults(); in my controller, only if a user clears the field where customerToClearSearchText goes on the VF page. If I remove the ...
0
votes
0answers
24 views

Remove Timestamp from date picker field in EDIT mode

<apex:input styleClass="input-text-center" value="{! data.offerDate }" size="10" id="demo" onfocus="DatePicker.pickDate(false, this , false);" Above code is displaying the date picker for chrome ...
0
votes
2answers
21 views

Carry Over Values from Account Info Page [closed]

I have created a controller to be able to edit person accounts, however I am using inputText vs inputField because of other customizations. How can I autopopulate person account fields into my "...
0
votes
1answer
44 views

Static Resource JS - Apex InputText

I am trying to use the static resource "dateformat" a javascript file containing the following code to auto-format the input of an apex input text field. When I embed the script directly into the VFP ...
1
vote
1answer
23 views

Control 3 elements with different ids with a single checkbox in visualforce page

I have a visualforce page wherein I have to control two input boxes and one picklist field with a single checkbox. The idea is that input boxes must be both disabled when checkbox is selected, while ...
1
vote
1answer
392 views

Why doesn't standard Chrome text input autocomplete work in Salesforce Lightning?

When in Lightning why doesn't the standard text input field provide autocomplete like it does when in Classic? i.e. I have a text field in a custom object, I go to create a new record and the browser ...
0
votes
1answer
81 views

Take a user input to be use in SOQL

I have a controller that counts the number of transaction and group it by store, year, month & day. I am trying to do a user input box in VF page to allow user to enter the month only so that it ...
1
vote
1answer
70 views

Updating value of UI:InputTextArea on paste

I have a UI:InputTextArea with a character count on the bottom. The problem I'm having is due to pasting on Salesforce1. The character count is not updated when I paste in the box. I have to press ...
1
vote
1answer
81 views

Apex:InputText - Handle Apostrophes

How do I handle apostrophes when using apex:inputtext component to set the value of a search? Some searches indicate string.escapeSingleQuotes(searchString); or {!JSENCODE(!searchString)} would ...
0
votes
1answer
698 views

Setting Tab Order in Lightning Component input fields

Is there a way to set the tab order for input fields on a Lightning Components? Currently the order is across and down through the form and we would like it to go down first and then across.
0
votes
1answer
85 views

Text Field data in lookup field

I have a text Field called Called Five9 Inbound Campaign Name and Lookup field called Lead Source Name When I enter any text in Five9 Inbound Campaign Name lets say "Zillow - Affinito" I want to ...
1
vote
2answers
512 views

Clear inputText field on command button click

This seems to be pretty simple and common requirement, but not able to make it work in my Vf page. I have a search command button which queries records and display in tabular format (as shown in code)...
0
votes
1answer
1k views

document.getElementById is not obtaining the value of input type=text [closed]

In this stripped down VF page, I have 2 standard inputs. I'm trying to get the value of the "testme" input from JS, but the 2nd alert never shows. Am I missing something? VisualForce: <apex:...
1
vote
1answer
19 views

help to define inputtext for a controller extension

I need to add a detail button to the Lead page to provide data entry for a custom child object ( Interest_Criteria__c ). In my controller extension I have: public class ...
0
votes
1answer
78 views

Rich text, icon problem

This is an output field of Rich Text Area(32768). which could be the problem? In visualforce page I wrote: <div id="myModal" class="modal" style="{!IF(modal, '', 'display: none;')}"&...
0
votes
2answers
53 views

Why the record is not getting in search, If the requested record coloumns don't having 1 or 2 values of 3

I am trying to search records based on the 3 input strings. But the record is not getting If the requested record columns don't have this any one of the values(Aadhar_ID__c, name, First_Name__c). ...
0
votes
1answer
490 views

InputText for capturing Date field

I have a Date (Completed_Date) field in my Timesheet object which I want the users to be able to update and Save after a Timesheet is submitted. I have been able to pass the field from Controller to ...
1
vote
2answers
263 views

Passing InputText to Controller Extension [duplicate]

I have read through all the posts really but still not able to figure this out. I want to pass the no. of hours that are input on the VF Page back to the controller. Basically, user should be able to ...
0
votes
1answer
544 views

How to clear input text field value inside a block

I am displaying 6 text field using apex repeat. Now i am placing a command link called " Clear Filter" to reset the value to null. I am not able to get the id of the inputtext since it is inside a ...
0
votes
1answer
364 views

InputText not passed on to Controller

I have a number in an input text that I want to pass on to the controller: <div class="divTable"> <div class="divRow"> <div class="cellOne"> &...
2
votes
1answer
171 views

Binding issue: ui:inputText and Wrapper

We are trying to convert an application written using Visualforce to Salesforce Lightning. We have following code in our lightning component. The component displays the values querried from the object ...
2
votes
0answers
5k views

Binding wrapper class variable to the value of an ui:inputtext in Lightning?

A similar question has been asked here Binding behaviour on lightning components with ui:inputText/Checkbox components I have 2 attributes of 1) Type = Wrapper class 2) Type = Sobject My ...
1
vote
1answer
242 views

Not able to Display entered inputtext in same visualforce page

I have created Discount Integer variable in apex class and use it as a inputText in visualforce page and at the same time i need to display that entered inputText here is my visualforce code : <...
1
vote
3answers
98 views

How to take an Input value & pass it to a outputlink

I have a very simple requirement which is to create a page in Visualforce. Take a value input by user & then pass the value to be used as a filtering criteria in a report in an outputlink. There ...
2
votes
1answer
273 views

Lightning badges inside input

I have an input field where people can write one or multiple email addresses. For now, when they are added I display a list of lightning:button with the selected ones but is does not look good at all. ...
0
votes
2answers
269 views

Copy value of checked inputField to another inputField

I want to copy a value of an inputField which is checked and paste it to another inputField. I can do it with Javascript like this : function copy(test,test2) { document.getElementById(test2)....
0
votes
2answers
293 views

How to store/post/bind input field (lookup) value of VF page in SF database?

I am developing a VF page where all lookup fields (for both parent & child object) will be replaced by autocomplete/typeahead. It is suggesting perfectly for lookup fields, but can't store the ...
0
votes
1answer
934 views

Pass a variable from an apex:inputText to controller

in my Vf page I have an apex:inputText: <div Class="OtherVendor"> <apex:outputPanel id="otherPanel"> <div Class="Other"> <apex:inputText id="...
0
votes
1answer
164 views

How to read value in a Apex.InputText? (Without MVC)

Below is how InputBox in apex page which is not bound to any object. <apex:inputTextarea id='testtextinput'/> Below is the attempt to read the textbox input. String tempval = System....
0
votes
1answer
50 views

Null being passed in input box

I have a visual force input box <apex:pageBlockSectionItem rendered="{!displayDayCount}"> X=<apex:inputText value="{!recurringTaskLPP.dayCount}" /> </apex:pageBlockSectionItem> ...
1
vote
0answers
347 views

Add comma on input text that reference a decimal value

I have an inner class that has decimal attribute. This attribute is referenced by an input:text field on visual force. My question is how can I add thousand comma separation on this input text? e.g ...
0
votes
1answer
206 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 ...
0
votes
2answers
476 views

Setting errors in input controls violates access check error

In the example given about validating user inputs you can see this line inputCmp.set("v.errors", [{message:"Input not a number: " + value}]); When I do the same I receive an access check error in ...
1
vote
2answers
3k views

Adding Error Message to Input Text using javascript/jquery in Visualforce

My requirement is , I wanna add an error message to field seems like standard error only using apex , I don't wanna make them required. Should be like: Update: Apex Class: public class ...
1
vote
1answer
3k views

How to make <apex:inputText> field conditionally read-only without Javascript

I would like an input to be conditionally read-only, but I cannot find a way to make a boolean HTML attribute like html-readonly conditional within VisualForce. I am avoiding Javascript to remove the ...
4
votes
1answer
715 views

Auto Search Textbox with comma separator in visualforce (mutliselect autocomplete)

I want to create a auto search textbox in visualforce. There are many blogs about this scenario is available. But how to make that textbox to search multiple values like after selecting a value from ...
4
votes
1answer
347 views

Syntax error on a condition into an apex:inputText value

I have an apex:inputText in wich I want the value to change when an Id is null or not null. I wrote that : <apex:inputText value="{!IF(droitId!=null,droit.Oeuvre__r.Name,nomOeuvre)}"></apex:...
3
votes
2answers
588 views

actionFunction behavior differ for inputCheckbox and inputText

Have some inputText fields and I'm doing some calculations with the values of these(inputFields are inside a pageblocktable, having wrapper items). VF : <apex:actionFunction name="calculateTotals"...
0
votes
1answer
666 views

how to convert an HTML class to visual force component class

I have a code in HTML and i need to convert it into VF. My HTML code is like <input id="Lname" value="" class="validate[required] text-input" maxlength="40" name="LastName_Web__c" size="20" ...
0
votes
1answer
565 views

Using a repeater with inputText field

I'm creating a custom community chatter answers page and I have multiple questions with answers in them using an apex repeater. The problem is that because it's repeating inputText field (for posting ...
3
votes
2answers
9k views

Get text input value with the help of HTML and pass it to controller

I have designed my VF UI using HTML. I have a doubt, is it possible to get a Value in HTML (Input Type:Text) box and pass it to controller ? Please find the codes below My current VF page ...
-3
votes
2answers
405 views

I have one custom field (input text)that field allow only numeric value i need if i given text shown error in visual froce page with controller? [closed]

I have one custom field it allows only numeric value only. please send conditional formula
0
votes
1answer
3k views

Make Lookup fields read only on a VF page

I have a VF page for creating a new record for a custom Object. It looks like this There is a lookup to Service_Contract__c. I needed to autopopulate it (which was the whole reason behind creating ...
1
vote
1answer
760 views

Tab index ignored in Visualforce page

This seems such a simple problem, but I cannot see why the solution is not working. I have an inputText and a command button in the same area of the screen, and want to tab from the inputText to the ...
1
vote
2answers
437 views

Struggling to get/set inputText value

I have been struggling with this for a while now and need some help. Below I have table of orders being displayed using <apex:repeat>. By doing this I can create a table for each order I want to ...
0
votes
1answer
66 views

Passing value in my inputext field to controller

I am working on a VisualForce page where a user updates a record by inputting value into inputtext field and presses the SAVE button. For testing I tried to make it as simple as possible. VF - ...