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
meghana kollumeghana kollu 

Display list with combinations in visual force page before saving record

I have a requirement, Suppose in visual force page there is a text field has a,b,c,d values on field blur, display these values as rows like A-B,B-C,C-D,D-A before saving the record
NagendraNagendra (Salesforce Developers) 
Hi Meghana,

You can call Apex-side code from Javascript in a Visualforce page to meet this requirement.

There are 2 options:

1. Using apex:actionFunction: 2. Using Javascript Remoting:
Either option would see you attach an onblur listener to the text box to call the Apex controller and pass the value of the box. The rest you should be able to take care of on the controller side.

Thanks,
Nagendra