• ameghnathi1.3923679616717695E12
  • NEWBIE
  • 10 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 1
    Replies
Hi all,

I have a requirement for adding a Captcha mechanism to a form. 
I don't want to use the Google reCaptcha. So I did some searching and found the below link.

http://www.tehnrd.com/simple-visualforce-captcha/

I was able to add the captcha as given in the above link and make it functional. 

Now the problem starts when I try to add the logic for refreshing the captcha (for loading a different captcha pattern). 
I tried adding a commandlink. It is refreshing the entire page along with the captcha. I wanted to have an AJAX like functionality which refreshes the particular captcha section alone.

The APEX code which generates the captcha resides in my controller class file which is responsible for controlling the entire form.

How can I make the refresh without affecting the rest of the form functionality? I have to invoke the specific method which generates the captcha, get the updated captcha value and render it in the captcha section.

Please help me out with your suggestions and solutions.

Thanks in advance.