Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

How to hide apex:inputField and Javascript?

Asked by Aashna Saito Apr 22, 2021 682 views 1 answer
Share

About this question

Is their any way to show/hide my once I start typing AND save the data to a custom object.

Option 1: I am able to do this functionality with a <input> tag and javascript but I am unable to save the Stipulation_Reason__c value to a salesforce object.

<input id="textbox2" value="{!stipObj.Stipulation_Reason__c}" /> 
-------------------------------------------------------------- $(function() { $('#textbox2').on('keyup change', function() { if (this.value.length > 0) { $('#savebutton3').show(); } else { $('#savebutton3').hide(); } }); });
Option 2: I am able to save Stipulation_Reason__c to the custom Object but it is not responsive to the javascript

Is it possible to use apex:inputField with JavaScript?

Your answer

1 Answer

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.