Google recaptcha Implementation in Site Studio Custom Forms

I am implementing recaptcha in my custom html forms which i have defined in custom component resource.for recaptcha implementation i am using recaptcha4j-0.0.7.jar ,on form submit it calls my custom service 'MyMail' which executes javafunction where i am calling recaptcha fuction to verify recaptcha text and after that sending Form details to given Email Address.*But when i am redirecting to same page for sending message for recaptcha response all form fields values goes blank.*
Is there any other way to retain form values when my service returns recaptcha response?
<form id="DataForm10" class="form" action="<$HttpCgiPath$>?IdcService=My_MAIL" method="post">
<fieldset class="rc_grey">
<input type="hidden" name="Email" value="<$email$>"/>
<input type="hidden" name="RedirectUrl" value="<$ssGetServerRelativeUrl(siteId, nodeId)$>"/>
<ol>
<li>
<div class="grid_4 alpha">
<label for="name"><em> *</em>Your Name</label>
</div>
<div class="grid_5">
     <input type="text" name="name" id="name" class="mandatory"/>
</div>
</li>
<li>
<div class="grid_4 alpha">
<label for="reference_no"><em> *</em>Your Reference No (located top left of payslip)</label>
</div>
<div class="grid_5">
     <input type="text" name="reference_no" id="reference_no" class="mandatory" />
</div>
</li>
<li>
<div class="grid_4 alpha">
<label for="dob"><em> *</em>Your Date of birth</label>
</div>
<div class="grid_5">
     <input type="text" name="dob" id="dob" class="mandatory"/>
</div>
</li>
<li>
<div class="grid_4 alpha">
<label for="ni_number"><em> *</em>Your NI Number</label>
</div>
<div class="grid_5">
     <input type="text" name="ni_number" id="ni_number" class="mandatory"/>
</div>
</li>
<li>
<$include recaptcha_inc$>
</li>
</ol>
</fieldset>
<div class="s_mrg">
          <input type="submit" value="Send" class="button" />
</div>
<div class="clear"></div>
</form>
Also if there is any other better approach to implement google reCAPTCHA in oracle UCM Site Studio?Please Suggest

Hi Mikey,
This code is not working because when i am redirecting on same Form page all m_binder data will lost , so the response data will be blank on page after redirecting.You can see theprevious form code where i have specified RedirectUrl input hidden field and in my java fucntion i am only appending Response message with RedirectUrl parameter.
if (reCaptchaResponse.isValid()) { 
          // this command is used to send email to the client. The message
               // sent is a template (Mail), and the data to format the
               // message is taken out of m_binder, contained in "this"
          boolean response=InternetFunctions.sendMailTo(emailStr, "Mail", subject, this.m_service);
               redirecturl=redirecturl+"?Response="+response;
               m_binder.putLocal("RedirectUrl",redirecturl);
     } else {
          redirecturl=redirecturl+"?valid="+reCaptchaResponse.isValid();
               m_binder.putLocal("RedirectUrl",redirecturl);
          }catch(Exception e){
               e.printStackTrace();
               redirecturl=redirecturl+"?error="+e.getMessage();
               m_binder.putLocal("RedirectUrl",redirecturl);
so please tell me is there any other way to submit my custom form and will display previous form field values entered by user when recaptcha response will  show on same page  through my service.
Thanks
Anubhav

Similar Messages

  • Logout implementation using Site Studio

    Hi,
    I just wanted to know if the logout functionality of UCM has been implemented using site studio and if yes, how to go about it. We are currently using the logout component that is present in UCM. However, the problem is, that the usage of that component requires you to add a registry entry in IE, to allow this to work. This isnt something that can be done on all machines and is hence not a feasible solution. So I was wondering if there's any other way that this can be implemented. Suggestions please?!
    Thanks.

    Is there a way to use Fragments or do I need to get a developer to write me non-Stellent code? Well, you need to get yourself a developer to write a fragment. And - dependet on what you want to do - maybe some Content Server customizaitons like custom services.
    Imho though it is not a good idea to use Site Studio as a web application plattform. A simple form is fine but if it gets more than that, you should consider writing a jsp or hcsp and check it in to the content server. This jsp or hcsp can still use your fragments and your html layout so that it does not look different from the Site Studio pages. Then you can link this script to a section in your Site Studio web site hierachy and by doing so include this dynamic part into your web site.
    Another approach for when you really need to do a lot of application stuff is to write the applications in another Java web app - not checked in to the Content Server - and use CIS to pull content from the Content Server. Or Web Services.

  • Modifying the Site Studio Contributor Form

    Is there a way to modify the wcm.sitestudio.form.htm? I say this because each time I make a simple change to it, Site Studio doesn't use my change. It looks like it's reverting to a different copy other than the one I edited.
    I can see a custom/sitestudio/wcm.sitestudio.form.js file - so I'm assuming I can add any Javascript mods there, but what about the form htm file itself?
    Basically here's what I'm trying to achieve. I'm using a jquery library to resize certain images on the Site Studio layout files. But when you're in Contributor mode you see these images as full size. I'd like to use that same jquery library when the contributor is in the edit mode to resize the images in it as well.
    Thanks.

    Update: I found the answer to my problem. I found I can use a simple component to over ride this file.

  • Site Studio - Custom Elements

    Hi,
    i have cloned ss_docname_form_link.
    I have successfully added dDoctitle, but any reference to custom metadata fields (e.g. xComments) fails.
    Any suggestions?
    Dave Martin

    Hi,
    an extract of the code is below, I have extended the points where dDocName is being used to add dDocTitle and xComments throughout the code.
    if (WCM.IsValid(returnValue) && WCM.IsValid(returnValue.docUrl))
                        var link = returnValue.docUrl || '';
                        var dDocName = returnValue.dDocName || '';
                        var dDocTitle = returnValue.dDocTitle || '';                    
                        var xComments = returnValue.xComments || '';
                        Custom.SetInputValue( link, dDocName, dDocTitle, dDocAuthor, xComments);
                        link = $ID('input-value').value;
                        link = Custom.GetDisplayValue( link );
                        $ID('display-value').value = link;
    Regards, Dave

  • Site Studio Contributor not opening in firefox

    I am trying to open site studio contributor form in firefox and its not opening.
    As soon as I clicked Shift+Ctrl+F5, on webpage, it asks me for login credentials, after sucessull login, i am not getting any option (icon) to edit region defination etc
    Before entering into site studio contributor entries are like:
    var _U = "undefined";
    var g_HttpRelativeWebRoot = "/idc/";
    var SSContributor = false;
    var SSForceContributor = false;
    var SSHideContributorUI = false;
    After going into contributor entries are like:
    var _U = "undefined";
    var g_HttpRelativeWebRoot = "/idc/";
    var SSContributor = true;
    var SSForceContributor = false;
    var SSHideContributorUI = false;
    I am using site studio designer (Version 10gR4 10.1.4.5.0 and component version 7.7.0.1 Build 9.0.0.470).
    Please provide if you have any solution or information to fix the issue, I have tried the using different systems/machines having firefox, but facing the same problem

    This seems to be covered by the support note 1465975.1 (Unable to Enter into Site Studio Contribution Mode After Upgrading to Firefox 13)
    The solution from the note:
    If on an 10g system upgrade to Site Studio 10gR4 build 9.0.0.793 or greater.
    If on an 11g system upgrade to Site Studio 11g build 11.0.0.786 or greater. For example the 11g MLR 11 for a .6 system has this fix and the 11g MLR 18 for a .5 system has this fix.
    If the version is not available with the current patchset on the 10g Content Server please open a new Service Request with Oracle Support and reference this Note ID and the build will be provided.
    (there are few more notes with similar issues, in case this remedy won't help, but it'll do no harm to start with it either way)

  • Site Studio Search and OracleText

    Hi All,
    I am finding information how the Site Studio search fragment can leverage on OracleText.
    I read in the OracleText documentation, it does have weight(*) operator to put more weightage on certain words the user is searching. I am wondering how this can be implemented in Site Studio Search Fragment.
    Any pointer will be very much appreciated.
    Thanks

    Anyone? or it is just not possible to use OracleText with Site Studio?

  • Styling items in Site Studio Contributor

    Hello,
    Similar to the way that contributors can style text by assigning predefined CSS classes through the style drop-down menu in a Site Studio Contributor form, I would also like to give them the ability to style ordered lists and tables (border-type, mainly). Is this possible? I have tried specifying these styles to be added in the style drop-down menu with no luck, as it seems to ignore any non text-based styles with some exceptions. If accomplishing this is not possible, is there a way to pre-format these lists/tables and give contributors options to pick from? Using WYSIWYG elements is not an acceptable solution for me because most of my contributors do not know anything about HTML and CSS. I come from an Interwoven system that has many features available for administrators to set (which CSS classes are available, context-sensitivity of classes, etc.). I am wondering if there is something similar in UCM.
    If I am unclear, please let me know and I will elaborate.
    Thank you for your time.

    This seems to be covered by the support note 1465975.1 (Unable to Enter into Site Studio Contribution Mode After Upgrading to Firefox 13)
    The solution from the note:
    If on an 10g system upgrade to Site Studio 10gR4 build 9.0.0.793 or greater.
    If on an 11g system upgrade to Site Studio 11g build 11.0.0.786 or greater. For example the 11g MLR 11 for a .6 system has this fix and the 11g MLR 18 for a .5 system has this fix.
    If the version is not available with the current patchset on the 10g Content Server please open a new Service Request with Oracle Support and reference this Note ID and the build will be provided.
    (there are few more notes with similar issues, in case this remedy won't help, but it'll do no harm to start with it either way)

  • Site Studio Publishing Utility (SSPU) HTML/ZIP?

    Hi,
    I am in the process of implementing the Site Studio Publishing Utility to publish a site to an FTP target.
    I had assumed that the site would be published as HTML files as the documentation suggests... however it is infact publishing a zip file.
    Is there anyway to get the SSPU to publish the HTML and associated files directly? I want to prevent the need for the files to be extracted (whether manually or automated).
    Thanks

    You only need to install the Subscription Client on the target server, and it will unzip the HTML to the correct places.

  • Site Studio Contributor as a form

    I have a requirement where end users need to fill in a short form (1 x plain text field, 1 x WYSIWYG field) and submit it as an xml file to the content server. We cannot use the Site Studio Contributor in this scenario, but wanted to hook into the Site Studio services/methods/functions mainly for security i.e. cross site scripting etc.
    Does anyone know if documentation for services/functions to use? Any tips would be much appreciated.
    We using 11gr3

    Hi,
    I have created the custom componenet through component wizard. I have created resource, template file and service as hello_user.
    I have referred the site
    http://books.google.co.in/books?id=TiUzMYbpg2MC&pg=PA133&lpg=PA133&dq=content+server+custom+component&source=bl&ots=mIpxohCXKw&sig=slBafW2vpwIL75KzUYpTUToDjVQ&hl=en&ei=14RISuPeI9SxsgbspLXXCQ&sa=X&oi=book_result&ct=result&resnum=2
    When I ran the service using url. http://<mycontentserver>/idc/idcplg?IdcService=HELLO_USER, it showed me the error as below
    Content Server Request Failed
    Configuration error for request 'HELLO_USER'. No dynamic HTML page.
    I hope you get the problem details.
    Thanks,
    Shyamal

  • Best Practices for Forms within Site Studio Templates

    Last summer our university redesigned our entire website using site studio. We only use the content server for the SiteStudio add on. During the redesign, we found that it wasn't clear how we were supposed to migrate our current web forms (applications, payment forms, etc) to sitestudio. Our current workaround is to place the form within the content server, and have it submit data to a cgi (perl,php) placed on a separate web server. We wrap the backend of the form within an html template that looks like our sitestudio templates so that it appears to the end user that they are still on our website.
    Obviously, this is not ideal. I have been reading documentation on how to use the content server to host JSP files. The jsp files run flawlessly if they are accessed via the weblayout folder directly. I have not yet found a solution that will allow me to wrap my jsp forms within our existing sitestudio templates.
    Has anyone else encountered this problem, or come up with an alternate solution to this problem?

    Thanks, I appreciate your taking time to find the precise answer. Just today this bit me again.
    I have a need to modify the ComboBox template to italicize placeholder text.  That's a easy thing to do; however, now that I've created a new template I have to name it and add a Style={StaticResource MyNewStyle} to ALL the comboboxes in my app. 
    If I leave my new template unnamed - to override the default - none of the theme resource changes that I already have in place are picked up by the existing ComboBoxes, and they revert to their default look.
    There's clearly something wrong in the way I'm doing it or the way it's implemented.

  • Simple Contact form in Site Studio

    I'm trying to build a simple Contact Us form in a Site Studio website. I've built the front end form using the FCK editor, but I'd like to be able to email the form data. Does IdocScript have built in functions to handle emailing form data? I don't want to store it on Content Server, or check any documents in, just email the data.
    Right now I just have the form action pointing to PHP script I host outside the Content Server, but it seems like it would be cleaner if this could just submit back to the Content Server.
    Thanks,
    -Jason

    If you want use something existing or out-of-the-box (OOTB), the "easiest" way would be to post to the SUBMIT_HTML_FORM idcservice. When the form is submitted, a copy of the form is checked into the content server, which you can then have subscriptions alert users via email.
    Here is some help on getting forms to work via the SUBMIT_HTML_FORM idcservice if you don't know what I'm talking about. I wound up implementing this [almost] exact solution about 1.5 years before Kyle's post - just tooting my own horn here :) - but props to Kyle explaining it pretty well. There are many tweaks that can be made, but it works quite well on a fundamental level. You can see some of the "issues" I'm still running into by reading my (Andrew) comments, but you're using the same editor that Kyle did, so you shouldn't run into any of the issues I did.
    I also went one step further by writing my own email (using javamail) idoc function and calling it anytime a new form was submitted. This is obviously something that is not OOTB and reserved for advanced discussion.
    Good luck!
    Edit: Stupid "insert a link" doesn't work. Use standard HTML tags to insert hyperlinks.

  • Implementing Key Flex fields in Oracle apps custom form.

    Hi all,
    I have developed a custom form from scratch. Need to implement key flex fields in my form. Kindly help me and please share any document for Key flexfields implementing. Quick response will be highly appreciated. Thanks a in advance.
    Please mail to [email protected]
    Regards
    Aiyaz
    Please send me a complete document for implementing flex fields in a custom form. Screen shots in the docs will be very much help full.
    Regards
    Aiyaz
    Edited by: user6422762 on Jan 27, 2011 9:44 PM

    There are so many special cases and cases with Oracle Apps that you will need to ask this question in the dedicated Apps tech forum rather than here. Please post this question here: OA Framework

  • Search implementation on website in oracle site studio

    I m new to Oracle Site Studio & Content server and i have to implement search on the site which i have created using Oracle Site Studio designer 11g so can any one please help me out regarding that.It's urgent please.
    Thanks
    Regards
    Vijay Kumar

    Hi
    What exactly are you trying to do with searching on site ? As in by default you have the fragments which has the search code already put in it . You can directly use them for a start .
    Hope this helps .
    Thanks
    Srinath

  • Spell checker Functionality to be Implemented in a Oracle Ebiz Custom form

    Hi,
    I have tried implementing the Spell checker functionality in one of our Custom form,I used the OLE2 Built in Package in forms 6i to invoke the Spell checker functionality in Microsoft word but i am getting an error,Could anyone please help me in implementing the functionality?
    I used the following procedure to Implement the spell checker functionality in Forms 6i and registered the same in Oracle Applications 11i,
    PROCEDURE spell_check (item_name IN VARCHAR2)
    IS
    my_application   ole2.obj_type;
    my_documents     ole2.obj_type;
    my_document      ole2.obj_type;
    my_selection     ole2.obj_type;
    get_spell        ole2.obj_type;
    my_spell         ole2.obj_type;
    args             ole2.list_type;
    spell_checked    VARCHAR2 (4000);
    orig_text        VARCHAR2 (4000);
    BEGIN
    orig_text := NAME_IN (item_name);
    my_application := ole2.create_obj ('WORD.APPLICATION');
    ole2.set_property (my_application, 'VISIBLE', FALSE);
    my_documents := ole2.get_obj_property (my_application, 'DOCUMENTS');
    my_document := ole2.invoke_obj (my_documents, 'ADD');
    my_selection := ole2.get_obj_property (my_application, 'SELECTION');
    ole2.set_property (my_selection, 'TEXT', orig_text);
    get_spell :=ole2.get_obj_property (my_application, 'ACTIVEDOCUMENT');
    ole2.invoke (get_spell, 'CHECKSPELLING');
    ole2.invoke (my_selection, 'WholeStory');
    ole2.invoke (my_selection, 'Copy');
    spell_checked := ole2.get_char_property (my_selection, 'TEXT');
    spell_checked :=SUBSTR (REPLACE (spell_checked, CHR (13), CHR (10)),1,LENGTH (spell_checked));
    COPY (spell_checked, item_name);
    args := ole2.create_arglist;
    ole2.add_arg (args, 0);
    ole2.invoke (my_document, 'CLOSE', args);
    ole2.destroy_arglist (args);
    ole2.RELEASE_OBJ (my_selection);
    ole2.RELEASE_OBJ (get_spell);
    ole2.RELEASE_OBJ (my_document);
    ole2.RELEASE_OBJ (my_documents);
    ole2.invoke (my_application, 'QUIT');
    ole2.RELEASE_OBJ (my_application);
    END;
    I am getting the following error,
    *305501:non-ORACLE exception*
    I get this error exactly after the following line of the procedure,
    my_application := ole2.create_obj ('WORD.APPLICATION');
    This Spell check functionality works fine when implemented in a standalone form(When a form is ran from the Form Builder),Facing issue only when it is registered in the Oracle applications 11i.
    I searched various Forums,But i unable to find any solution,Expecting your help on the same asap.
    Thanks,
    Venkat
    Edited by: 946005 on Jul 12, 2012 3:47 AM

    Hi Raja,
    Thanks for the Reply..
    Thanks a lot for your quick and efficient responses.
    But Iam unable to figure out how to implement this auto save functionality in this BSP Applicaition. If anyone has worked on this BSP Application <b>HAP_DOCUMENT</b>, can you please tell me how to do this auto save functionality. Is it possible that when I give this popup to save using java script and when the User clicks on OK, can I get the return code for this and use it to trigger the auto save functionality? And where exactly do I have to code this. Because the code here is bit confusing and the pages are called dynamically, even Iam unable to figure out the Button Id. Can anyone please help me out on this. This is a very urgent requirement.
    As specified by you, I have used this code to give the popup.
    <script type="text/javascript">
    function alertUser()
    alert('Please Save the changes by clicking Save button');
    window.setInterval("alertUser()",300000);
    </script>
    Can I use the same code for save also, like this:
    <script type="text/javascript">
    function autosave()
    htmlbSL(this,2,'SAVE:SAVE');
    window.setInterval("autosave()",300000);
    </script>
    I was trying with this but it is not working.
    Regards,
    Raju
    Message was edited by:
            Narayana Raju Sampathirao

  • Implementing forlder option in oracle custom form 10g

    Hi all,
    I want to implement folder option in my custom form.
    i have gone through different blog but i am little bit confused.
    please any one help me in providing step in easy language.
    thanks.....

    Forms "Folders" is a feature of the Oracle Enterprise Business Suite (EBS) not a feature of Oracle Forms. Please post your question in the General EBS Discussion forum. If you have a general Forms question, by all means, ask it here! ;-)
    Craig...

Maybe you are looking for

  • BO XI 3.1 Infoview issue

    Hi All, I am facing issue in Infoview. Not able to see the history of the instance of the reports. I am able to see the list of the instances when I click on the report and select History, but the links ( instance name) are not enabled to see the dat

  • Can't read a DVD-RW I just burned successfully

    My search on this forum didn't get me the answer - Hope I didn't miss it... My knowledge in this area is zero having come from a beige G3 with little need to burn even a CD. A friend gave me a DVD-RW onto which he had burnt a short TV clip recorded d

  • Attn 24" Alum iMac owners and who play BF2142

    What resolutions are you getting? By that question I'm asking what resolutions in game are you getting? I have a 24" iMac 2.8ghz and the only resolutions I'm getting are 800x600 and 1024x768. Now here's the rub. If I connect a 17" monitor, set that m

  • Prob in accessing DataSourece value from netui-data:repeater after submit

    HI all,           I am new to this WLWS. PLease guide me in the following scenario:           I am retrieving an array of records (activityDetails[]) from a Db control and setting this to the datasource property of a netui-data:repeater. Basically I

  • How to use/implement xor binary operator in oracle

    Hi, Like in VB and .Net we have a Binary operator/expression called Xor for the following logic.... EXAMPLE: A Integer = 10 B Integer = 8 C Integer c = (A Xor B) OUTPUT is 2 1010 (10 in Binary) 1000 (8 in binary) 0010 (result is 2 in binary) I want t