+ 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 ?