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
Néstor Velázquez SánchezNéstor Velázquez Sánchez 

How to submit a VF form

Hi, I have a big and dynamic form, I don't care if the inputs come from list or objects or variables { set; get; } in the controllers, that's irrelevant, My only need is to send via POST and receive the input inputs from Visual Force Pace to a method that stores the received fields in objects.

I try use this part but don't working: 
<apex:pageBlock >
        <apex:form id="saveNewBooking">
            <apex:pageBlock >
                <apex:pageBlockButtons location="bottom" >
                    <apex:commandButton action="{!saveNewBooking}" value="Aceptar" style="width:135px; height: 30px; float: right;" />
                    <apex:commandButton value="Cancelar" style="width:135px; height: 30px; float: right;"/>
                </apex:pageBlockButtons>
            </apex:pageBlock>
            <apex:repeat value="{!opportunityProducts}" var="product">
                <!-- vamos a meter el for de los productos -->
                <apex:inputHidden id="fechaInicioNueva" value="{!product.Fecha_de_Inicio__c}"/>
                <apex:inputHidden id="fechaFinalNueva" value="{!product.Fecha_finalb__c}"/>

				<apex:inputHidden id="horaInicioNueva" value="{!product.Hora_de_Inicio__c}"/>
                <apex:inputHidden id="horaFinalNueva" value="{!product.Hora_Final__c}"/>
                
                <apex:inputHidden id="ProductId" value="{!product.Product2.Id}"/>

                
                <apex:pageBlock >
                    <h2>
                        Producto: {!product.Product2.Name}
                    </h2>

                    <apex:dataTable value="{!mapAssetsProduct[product.Product2.Id]}" rendered="{!if(CONTAINS(keysProducts,product.Product2.Id),true,false)}" var="asset" styleClass="tableClass">
                        
                        <apex:facet name="header">Activos</apex:facet>
                        
                        <apex:column >
                            <apex:facet name="header">Id relación</apex:facet>
                            <apex:outputText value="{!asset.Id}"/>
							<apex:inputHidden id="Id" value="{!asset.Id}"/> <!-- El id de la relacion -->
                        </apex:column>
                        
                        <apex:column >
                            <apex:facet name="header">Nombre</apex:facet>
                            <apex:outputText value="{!asset.Activo__r.Name}"/> - <apex:outputText value="{!asset.Activo__c}"/>
                        </apex:column>
                                               
                        <apex:column >
                            <apex:facet name="header">Actividad</apex:facet>
                            <apex:outputText value="{!IF(asset.Actividad__c == '', 'No especificada', asset.Actividad__c)}" />
                        </apex:column>
                        
                        <apex:column id="disponibilidad">
                            
                            <apex:facet name="header">Disponibilidad</apex:facet>

                            <apex:repeat value="{!bookings}" var="a">
                                <apex:variable var="disponibles" value="{!IF(a['A'] == asset.Activo__c, '1', '0')}" />
                                <apex:outputText rendered="{!IF(disponibles == '1', true, false)}" >
                                    <span class="{!IF(disponibles == '1', 'errorSmall', 'dispSmall')}">
                                        No disponible </span><br/>
                                        
                            		<apex:variable value="{!IF(asset.Activo__r.Tippo_del_activo__c == 'Interno', 'SI','NO')}" var="interno" />
                                    <apex:outputText rendered="{!IF(interno == 'SI', true, false)}">
                                        <select name="Activo" id="Activo" class="excluyent-select">
                                            <option value="">- - Selecciona un sustituto - - </option>
                                            <apex:repeat var="actvs" value="{!assetAbilities}">
                                                <apex:outputText rendered="{!IF(actvs.Actividad__c == asset.Actividad__c, true, false)}">
                                                    <option value="{!actvs.Activo__c}">{!actvs.Activo__r.Name} - {!actvs.Actividad__c}</option>
                                                </apex:outputText>
                                            </apex:repeat>
                                        </select>
										
                                    </apex:outputText>
                                </apex:outputText>
                            </apex:repeat>
                        </apex:column>
                    </apex:dataTable>
                </apex:pageBlock>
            </apex:repeat>
            <apex:pageBlock >
                <apex:pageBlockButtons location="bottom" >
                    <apex:commandButton action="{!saveNewBooking}" value="Aceptar" style="width:135px; height: 30px; float: right;" />
                    <apex:commandButton value="Cancelar" style="width:135px; height: 30px; float: right;"/>
                </apex:pageBlockButtons>
            </apex:pageBlock>
        </apex:form>
    </apex:pageBlock>


In the method I don't have nothing, how i can get the values of the inputs? In the LOG I  don't have nothing.