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
domdickdomdick 

Visualforce pass parameter value

Hi,

 

I have following code on VF page.

              <apex:column headerValue="theField">
                    <apex:inputField value="{!pc.numericVal}" required="false" id="Field" />                                       
                </apex:column>

when hit "save" button, I would like to pass the value (Non-blank) if user doensn't fill out above inputfield?

 

Any solutions?

 

Thanks

Avidev9Avidev9
Why you want to pass the value from the UI ?
I guess you can handle the same from controller ?

if(pc.numericVal == null){
pc.numericVal = 1;//some default value
}
domdickdomdick

Is there any way to eveluate vi UI? may be javascript.

I dont have much knowledge on controller.

 

Thanks

Avidev9Avidev9
I dont think you need a JS. Anyways can you post a sample code ?