Contents
How can I make a simple VF page that accept user input?
Please check the below sample code. Hope this helps you! @Ashish, // U can call Save method from ur vf page, which will save the record. Hope it helps!! Please check below post for for controller.
How to updating HTML form elements in JavaScript?
Log in or sign up to add this lesson to a Custom Course. The previous example sent data back to an HTML form field, but only with a static, pre-configured text value. In other words, no matter how many times we press the ”Submit” button, the text input will display ”This is an auto-generated value”.
When to call update ( ) function in JavaScript?
The element calls the update () function when clicked. Incidentally, we’ve used a button to call the function as opposed to an element, because while that would also call the function, that would display the desired results for a fraction of a second, and then the page would reload.
How to validate a custom field in Visualforce?
This custom field is a Text data type and the Maximum length is 6. In the VF Page I need to make sure this field entered is a numeric and cannot be less than/ more than 6 digits, tried the validation using the javascript like below but it is not throwing the error
How to pass input text from Visualforce page to controller?
Also, System.debug is a good friend when coding VF/Apex – add some debug statements around your method that looks up the branchcode for the user input and log out the userinput plus the results. That is the only way to be absolutely sure what is happening. Can you please help me with this?
When does the text box appear disabled in Visualforce?
A Boolean value that specifies whether this text box should be displayed in a disabled state. If set to true, the text box appears disabled. If not specified, this value defaults to false.
How to save a record from a VF page?
Hope this helps you! @Ashish, // U can call Save method from ur vf page, which will save the record. Hope it helps!! Please check below post for for controller. I hope that will help you
How to create a sample Salesforce VF page?
I’m new to salesforce and would like to create a sample vf page which accept user input and once I clicked on save it will get inserted into my custom object and I want another button to show the record of the custom object on vf page, can you please help me for the code of vf and controller. Its just for my learning purpose.