Skip to main content

Questions tagged [inputtext]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-2 votes
1 answer
550 views

Automatically insert a white space while user enter text into a input text

I created a input text field, do you think it is possible to automatically insert a blank space every 4 characters while the user types in the field? I wanted to reproduce what usually happens in many ...
matt's user avatar
  • 1
1 vote
1 answer
2k views

How to remove the special character for Enter

I am trying to remove special char for enter. When I copy past 2 paragraph the space between 2 para is getting converted to special char. I need to remove it in LWC, do anyone have nay idea how to ...
Anu's user avatar
  • 3,879
0 votes
1 answer
2k views

Error: Element type "apex:inputText" must be followed by either attribute specifications, ">" or "/>"

I am getting the error Element type "apex:inputText" must be followed by either attribute specifications, ">" or "/>". when using <apex:inputText>. VF Markup ...
patriciajlim's user avatar
0 votes
0 answers
666 views

Flow formula not evaluated after returning from previous screen

I have a formula variable with my flow that uses values provided from the user on a screen component. When I proceed to the next screen, the flow uses this fVariable as the default value for a input ...
Xtremefaith's user avatar
  • 4,570
1 vote
1 answer
143 views

apex:repeat only reads the last inputText

I am trying to show a list of 5 of Accounts and along with it is an inputText. Now when I try to use the apex:repeat to display the 5 Accounts, along with the inputText (accPrice) and tried to loop ...
Noobie Dev's user avatar
0 votes
1 answer
79 views

render the html-placeholder based on country

How can i render the html-placeholder based on country? In the screen shot below, if the country is Canada, i want to display the html-placeholder as 'Enter Postal Code' Currently this is the code I ...
GroundToCloud's user avatar
0 votes
1 answer
255 views

Is there a way to zoom in on a text input field?

Say I have an lightning input field in a table that looks like this in HTML. <td><lightning-input key={row.key} data-key={row.key} value={row.aucNotes2} onblur={handleRowAction} name='...
chaseter15's user avatar
0 votes
2 answers
3k views

how to display the button inside the input in lightning

i am trying to achieve this, placing the search button inside the input. Onclick of search icon, i need to invoke other functions. How to make the search icon acting as button and invoke the js ...
Bhuvnisha's user avatar
0 votes
1 answer
290 views

Dynamic value does not show on html input textbox - rerendering necessary?

I am setting up a lookup component, but when I want to display the selected option in the textbox, the value does not show. However, it is written on the console, so the logic works. Also, when I ...
Andrea Voggenreiter's user avatar
-1 votes
1 answer
881 views

Setting of value to <ui:inputText ,based on aura:id

I want to set the value based on key,using aura:id Component: ...
Vanaja Kasaragadda's user avatar
1 vote
1 answer
243 views

Updating an array in controller to store user input from Visualforce page

I need to store input from user in controller so it can be used for calculations. To do this I am using an array, to get input in the controller. But getting issue: Subscript is invalid because list ...
वरुण's user avatar
  • 1,174
0 votes
0 answers
220 views

rerendering apex:inputText onchange to incorporate different styles

Is it possible to rerender an apex:inputText field immediately when the user changes the value of the field? In my application the form's input fields look different if they are already populated (...
MAS89's user avatar
  • 131
1 vote
1 answer
35 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
Niveth Kumar's user avatar
1 vote
1 answer
193 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:...
Testing_SFDC's user avatar
  • 2,950
1 vote
2 answers
57 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. ...
Gabriel Rivera's user avatar
0 votes
1 answer
146 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 ...
Gabriel Rivera's user avatar
0 votes
2 answers
39 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 "...
adming32442's user avatar
0 votes
1 answer
134 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 ...
S.B.'s user avatar
  • 2,131
1 vote
1 answer
99 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 ...
lol's user avatar
  • 93
2 votes
1 answer
3k 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 ...
Robs's user avatar
  • 9,416
0 votes
1 answer
356 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 ...
Ben's user avatar
  • 43
1 vote
1 answer
276 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 ...
user2582622's user avatar
1 vote
1 answer
355 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 ...
S.B.'s user avatar
  • 2,131
0 votes
2 answers
5k 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.
Zack Walton's user avatar
  • 1,626
0 votes
1 answer
1k 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 ...
richie's user avatar
  • 27
1 vote
2 answers
2k 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)...
Arun's user avatar
  • 47
0 votes
1 answer
11k 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:...
J.W.'s user avatar
  • 21
1 vote
1 answer
30 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 ...
J.W.'s user avatar
  • 21
0 votes
1 answer
128 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;')}"&...
Daniele's user avatar
  • 11
0 votes
2 answers
59 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). ...
Ravindar Admin's user avatar
0 votes
1 answer
907 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 ...
Maneesh's user avatar
  • 2,176
1 vote
2 answers
588 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 ...
Maneesh's user avatar
  • 2,176
0 votes
1 answer
1k 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 ...
ram135868's user avatar
0 votes
1 answer
745 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"> &...
Andrea Voggenreiter's user avatar
2 votes
1 answer
265 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 ...
user43755's user avatar
2 votes
0 answers
6k 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 ...
Rao's user avatar
  • 16.7k
1 vote
1 answer
462 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 : <...
WantToBeACoder's user avatar
1 vote
3 answers
477 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 ...
Ben's user avatar
  • 43
2 votes
1 answer
890 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. ...
Simonp's user avatar
  • 1,902
0 votes
2 answers
766 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 ...
Tanmoy Das's user avatar
0 votes
1 answer
3k 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="...
L.benedettini's user avatar
0 votes
1 answer
59 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> ...
Abhinav Pandey's user avatar
1 vote
0 answers
719 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 ...
george's user avatar
  • 11
0 votes
1 answer
630 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 ...
itsmebasti's user avatar
  • 6,525
0 votes
2 answers
594 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 ...
Christian Menzinger's user avatar
1 vote
2 answers
6k 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 ...
AkshAy's user avatar
  • 50
1 vote
1 answer
5k 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 ...
bullcitydave's user avatar
4 votes
1 answer
961 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 ...
sfdc's user avatar
  • 53
4 votes
1 answer
710 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:...
dou's user avatar
  • 1,979
3 votes
2 answers
963 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"...
highfive's user avatar
  • 6,271