function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sathish LoganathanSathish Loganathan 

Dynamic Input fields on a VF page

Hi,

Help needed in creating a vf page which displays the input text field dynamically and update the related record based on the input.

For example:

User has an existing quote, with different products. Each product has a picklist field which is a unit of measurement field. 

Quote has products such as A,B,C,D etc.

Products details: A with UOM - units,
B with  UOM - package,
c with UOM - flat rate
and etc.

So when a user clicks a button, he gets the input field to enter based on the UOM related to the Quote.

For example something like this.

Quantity UOM
----------- Units 
----------- Number
_______ package

So if I enter 3 for units, 2 for number and 3 package. My quote's product quantity should be updated with the numbers which gave as input.

I am able to display the fields based on the UOM. but stuck in the part how to get the value and update in the controller.

Kindly please let me know a possible solution to acheive this.

Thanks in Advance.

Regards,
Sathish