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
Vadivel MuruganVadivel Murugan 

How pass apex inputfield value into javascript return Url

<apex:inputField id="sla" value="{!Service_Sheet_STD__c.Order_Date__c}"/> This present one page.
When click the button this page open one vf page. ='/'+'{!}'+'/e?'+'retURL='+'{!}+"&sla="';  i have try this and ='/'+'{!}'+'/e?'+'retURL='+'{!}+"PageRefresh:Form1:complete_page_edit:j_id81:sla="'; with inspect element but not work.

This code present in that page. When  have to close automatically go previous page and clear the above input field using javascript url. In normal custom text field i get inspect element. but input field not work. if any one know reply me.
Use document.getElementById('{!$Component.sla}').value or innerHTML to pass the value of the inputField into the url at Runtime. ='/'+'{!}'+'/e?'+'retURL='+'{!}+&document.getElementById('{!$Component.sla}').value=""

Or, create a function that returns the value of the input and executes the at the end of the function. 
function getInputValue(){
var slaURLvalue = document.getElementById('{!$Component.sla}').value; ='/'+'{!}'+'/e?'+'retURL='+'{!}+&slaURLvalue=""


I hope this helps.