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.
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.
Kindly mark this as solved if the reply was helpful.
Thanks,
Nagendra