Scenario : Loading the select list with dynamic values from the controller and allow the inlineEdit for the user to edit the picklist.

I have to put this visualforce page in page layout visualforce page section and showing save and cancel button whenever double clicks on the field value to edit. I have problem with giving inlineeditsupport to select list.

I tried below one

    <apex:outputField value="{!Case.SnoozeIntervalInHours__c}" id="HoursInterval">
         <apex:inlineEditSupport showOnEdit="saveButton, cancelButton" 
                                                hideOnEdit="editButton,deleteButton" event="ondblclick" 
                                                changedStyleClass="myBoldClass" resetFunction="resetInlineEdit">
              <apex:selectList size="1"  value="{!Case.SnoozeIntervalInHours__c}" style="width:320px;"  multiselect="false">
                    <apex:selectOptions value="{!snoozeHours}"></apex:selectOptions>

But it is showing both outputfield value as well as input of select list.

How can I do the above scenario.

Is there any way to show the dynamic select list values whenever the user double clicks on the field(if not possible by using inlineeditsupport)

Any help is appreciable. Thanks.

  • I believe inlineEdit works with inputFields. – Rohit Mourya Mar 27 '17 at 11:38
  • Yeah. I too searched but digging my head to give double click edit support for user – Prince Mar 27 '17 at 11:47
  • Is there any possible way to produce the same functionality? – Prince Mar 27 '17 at 11:47
  • 1
    you want to give the suggested value as picklist to a field which not picklist type? Then i think through javascript you can achieve this. Because inlineeditsupport is only work with outputfield. – Safiya PV Mar 27 '17 at 12:13
  • Just remove the <apex:selectList> tag? – Adrian Larson Mar 27 '17 at 13:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.