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
Abuto JohnsonAbuto Johnson 

How do I use the same input field name more than once in a paga within salesforce?

NagendraNagendra (Salesforce Developers) 
Hi Jhonson,
 
1. It is not recommended to have multiple
 
2. component ids should be unique. You can't have different components with the same id. Try using a single apex:inputText instead. You can disable it based on your logic.

For more information please check with below link from the forums community with a similar discussion.
inputfields bound to a single field. An alternate approach for your first problem would be to have a single inputfield with two buttons and in the respective action method determine the type of the record to be created. 
Hope this helps.

Kindly mark this as solved if the reply was helpful.

Thanks,
Nagendra
Abuto JohnsonAbuto Johnson
Hi Nagendra, thanks for your response.I will look at the video .