My issue is after putting a lookup input field into a table, although it displays properly and by clicking the lookup button it can successfully open the lookup dialog, it can't select - When I click on one result in the lookup dialog, it doesn't pick it up.

My code generally looks like this:

<table class="wTableInfo1" cellspacing="0" cellpadding="0" border="0">
        <apex:form >
            <apex:repeat value="{!$ObjectType.Order__c.FieldSets.Request_Mandatory}" var="f"> 
                    <td>{!f.label} <span class="required">*</span></td>
                    <td><apex:inputField id="OrderDetailsField" value="{!parentOrder[f.fieldPath]}"/></td>

I have tested by moving the apex:form section out of the table and removing all the <td>, <tr> tags and it works fine for me. But if I put them in a table, the lookup field stopped working. It seems that it turns into readonly after putting in a table. This issue can also be replaced without using fieldset.

Any thoughts?

1 Answer 1


Did you try this?


submit action should be within apex:form

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .