How do I write javascript for a text block to extract name from signature block?

Hello,
I've created a training certificate that the trainee has to sign electronically. To prevent someone from simply putting in their friends name in there and saving it; to send to their friend and help them from having to take the training and quiz I would like to write a javascript in the text block that would extract the name from their signature block and autofill the name in the text block. Is there a way to do this?

You would have to use JavaScript to access the signature field object and then you can access the various properties of the signature depending upon the certificate or method for signing.
signatureInfo
console.show();console.clear();
// Get particular info;
var f = this.getField("Signature1");
// uses the ppklite sig handler;
var Info = f.signatureInfo();
// Some standard signatureInfo properties;
console.println("name = " + Info.name);

Similar Messages

  • How do you write UNDO for a text item?? examples? or a REDO??

    How do you write UNDO for a text item?? examples? or a REDO??
    I created a pop-up menu with CUT, COPY, PASTE, UNDO, CLEAR for my text items.
    Using MAGIC menu type works great but there is no MAGIC for UNDO or REDO.....
    How do you write UNDO for a text item?? examples? or a REDO??
    I have Oracle Forms 6i...
    Lets say I highlight all the text in the text item, and start typing over it... then I realize OH NO it is the wrong text field...
    Now I want to UNDO the typing and get back to the previous text.
    I'd use the initial value that was populate right? How do I access that if that is correct?
    Thanks, Bill

    You can use;
    <ITEM> := Get_Item_Property(<ITEM>,DATABASE_VALUE);
    Or you will have to write a pre-text-item trigger;
    PRE-TEXT-ITEM:
    :CTRL.CURRENT_VAL := :<BLOCK>.<ITEM>
    MENU (PL/SQL):
    :<BLOCK>.<ITEM> := :CTRL.CURRENT_VAL;
    You may also want to set the item property back to ITEM_IS_VALID so that item validation does not fire again.

  • How do I write JavaScript for a complex calculation in a PDF?

    Is there a way to create a more complex calculation in a PDF? I have created an order form that has separate fields for quantity, price and subtotals. For every item on the order form, the first two quantities are no charge. Each quantity after that is .25/each. How do I write the JavaScript to accomplish this calculation?
    e.g. 6 items ordered, first 2 are No Charge,
    =(2*0.00)+(Qty-2*0.25), should equal $1.00
    =(2*0.00)+(6-2*0.25)
    =0.00+1.00
    =1.00

    Not quite. You still need to use the eval function otherwise the numbers are just strings.
    Try this in the JavaScript Debugger:
    var Qty = 4;
    if (Qty>2) {
        var subtotal = eval ((Qty-2)*0.25);
    } else {
        var subtotal = 0;
    app.alert (subtotal);
    Steve

  • How to get F4 help for Standard Text Key of a operation based on Order type

    Hi Experts,
      How to get F4 help for Standard Text Key (STK) of a operation based on Order type entered in selection screen. The F4 help should give the STK of related order type. At the same time the F4 help for Task Types based on Notification type. How to acheive the above two. Please provide the table names or any search help name if exists or Function modules...
    Thanks in Advance.
    Regads,
    Bujji

    Hi Guys,
       Any help on this...
    Regards,
    Bujji
    Edited by: Bujji on Dec 22, 2008 12:42 PM
    Edited by: Bujji on Jan 5, 2009 2:00 PM

  • JavaScript for HTMLDB_ITEM.TEXT

    Do we support Javascript for HTMLDB_ITEM.TEXT ?
    If so let me know the syntax
    Not able to find the same in HTMLDB Help
    thanks
    -prashant

    Hi Got it
    FYI
    HTMLDB_ITEM.TEXT(1,field1,8,10,''onchange=javascript:Hi();'')
    thanks
    -prashant

  • How to create transport request for standard text created using SO10.

    Hi,
    How to create transport request for standard text created using SO10?
    Regards
    Ramakrishna L

    Hi,
    For the Standard text created in SO10,
    please go to transaction SE78 -> FORM GRAPHICS->STORED AS TEXT->STANDARD TEXTS->
    Double click on ADRS or ST or what ever your type of text->
    Enter your standard text name
    Click on transport button->SHIFT+f6-> It will ask you for a transport request.
    Best regards,
    Siva

  • Is there a site where they will write javascript for your pdfs that you could pay them to do it.

    Is there a site where they will write javascript for your pdfs that you could pay them to do it.

    Hi timothyh,
    Adobe doesn't offer those services, but you might try looking here: Planet PDF - The PDF User Community - Debenu.
    Best,
    Sara

  • How to create REQUEST NUMBER for STANDARD TEXT (SO10)

    how to create REQUEST NUMBER for STANDARD TEXT ( t-cODE SO10)

    you can do this using program RSTXTRAN .
    Text key - object
    Text key - name
    Text key - ID
    Text key - language, then it will store under one transport that can be moved to other system.
    check out the following link.
    http://help.sap.com/saphelp_47x200/helpdata/en/f4/b4a1ed453611d189710000e8322d00/frameset.htm

  • Is it possible for sms text messages to be forwarded from one iPhone to another

    Hi I'm looking for a bit of help please? Is it possible for sms text messages to be forwarded from one iPhone to another without the use of such app as mysms or google voice as neither of these seem to work. Apple sugested that my network provider can usually assist in such maters with a few simple setting there end. Does anyone have previous experience in these matters. Thanks Matt.

    Do you mean forward them automatically?
    As you can manually forward any SMS or iMessage to any number you want directly from the iOS Messages app.

  • I have an iPhone 4s. Suddnely for past two days, the contact names from my address book are disappeared.  Has anyone came across this issue earlier and know the solution please?

    I have an iPhone 4s. Suddnely for past two days, The contact names from my address book are disappeared.  Has anyone came across this issue earlier and know the solution please?

    You had to have some kudos for the effort put in to your thread as week as the point you make.

  • How to Display the ColumnName for the Text of any Master Data Object in BEx

    Hi Experts,
    In Bex Analyzer While Displaying the Key and text of any Master data object it shows column name for master data key but not for the text, here client requirement is he wants to see the Text column name as Description  for any master data text.
    say Customer Number is a master data object , while displaying key and text of CustomerNumber - column names should look  like as below
    CustomerNumber    Description
    C11111                     Pepco
    C11112                     Coke
    but usually in Bex Analyzer it displys as following(Text without  column Name)                      
    CustomerNumber   
    C11111                     Pepco
    C11112                     Coke
    Please suggest how can we achive this requirement, thanks in advance.
    Regards,
    Chandra

    Hi Chandra,
    I suggest you to enhance your datasource with text feild, by adding text feild to your datasource in ECC side and replicate it ti BI side.
    For this you have to write code at CMOD.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/302d4b15-5847-2a10-93bb-9c45d9f06b16?QuickLink=index&overridelayout=true
    Better this doc will help you.
    Regards,
    rvc

  • How to disable auto-complete for a text field?

    I didn't find any attribute that controls this. Thanks!

    Hi,
    Recently I needed to use this feature, and after some research I found the answer.
    Just sharing the solution.
    I am aware that the auto-complete is a browser setting. But is there a way to let APEX not save the items entered before? Write a javascript?
    Because I have implemented Google suggest for a text field. Every time the suggestions pop up, the auto-complete items will also appear at the same time, which is very annoying.Put on your Page Item > Element > HTML Form Element Attributes : autocomplete="off"
    Bytes

  • How can I use javascript in a Text Area with HTML editor??

    My question is... how can I use javascript in Text Area with HTML editor??
    I can use javascript functions that change the content of Text Areas but i can´t if i try in text area with html editor....
    I need to limit number of characters in a text area with html editor and i can´t.
    could anybody help me please?

    I have been experiencing similar problems with the HTML Editor and have managed to find an answer that should start to answer some of my questions. The Apex HTML Editor Standard is actually an HTML editor called FCKeditor. The FCKeditor has a Javascript API that can be found at http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/JavaScript_API. Unfortuately this doesn't seem to give the whole answer and I found more at http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:49607.
    I needed to get the text entered within my html editor standard (e.g. P1_MYTEXT) and use it within my javascript function. I did this by using the following script
    <script language="JavaScript" type="text/javascript">
    function showtext(){
    var oEditor = FCKeditorAPI.GetInstance('P1_MYTEXT');
    var editortext = escape(oEditor.GetXHTML(oEditor.FormatOutput));
    alert(editortext);
    </script>
    Hope this helps.
    Matthew

  • How to display header title for 0MATERIAL texts in the query output?

    Dear Bwers,
    I have a requirement where i need to display headers titles for 0MATERIAL texts in the query output. (example "Material description"). Any ideas on how to do this?
    Thanks
    Raj

    Kamal,
    Its is as below:
    <b>Vendor</b>    <b>Vendor Name</b>
    1001 ---            Bright Industries
    1002 ---            Glow Industries
    I want to display the header title "Vendor Name" as the  title in the column instead of displaying the text without any header title.
    Thanks
    Raj
    Message was edited by:
            Raj Singh
    Message was edited by:
            Raj Singh

  • NEWB HELP! How do I write Formula for Sales Tax and Gratuity items

    Sorry for the bonehead question, but I'm not much good with spreadsheets and we're trying to find out if we can afford to get MARRIED. In numbers '08, I'm using the "new from template chooser" item called "event planner".
    So far, it's adapting nicely to our needs, BUT some items incur sales tax, others do not. Some items involve a gratuity, others do not.
    I understand the idea of adding an E column with the basic formula =D*7.25% or an F column with =D*20%
    but that would add tax to EVERYTHING - question is this
    If I add two columns of checkboxes, one for YES TAX, one for YES GRATUITY
    how would I write the formula to say "If E is checked, then multiply D by 7.25%; if F is checked, then multiply D by 20%; add these two numbers together and put them in column G; if neither box is checked, put the value of D into G"
    then I could SUM column G (???)
    Thanks in advance for any help!

    Buster,
    This formula will work (long form):
    =IF(AND(B2=TRUE,C2=TRUE),A20.0725A2+0.2*A2,IF(B2=TRUE,A2+0.0725*A2,IF(C2=TRUE,A20.2A2,A2)))
    and can be simplified to:
    =IF(AND(B2=TRUE,C2=TRUE),1.275A2,IF(B2=TRUE,1.0725*A2,IF(C2=TRUE,1.2A2,A2)))
    I would point out, however, that tax rates and tip amounts tend to change. So instead of putting constant values in the formula, you may wish to replace them with cell references to the tax and tip rate values. Then should these values change, you need to change them in only one place rather than all your formulas.
    pw

Maybe you are looking for

  • How do I get my sounds to work again?

    My sounds used to work, but a few days ago they just stopped working. even my alarms and txt notifications do not work anymore.

  • Issue when opening Xcelsius-file in InfoView

    Hi all, We have a setup with following hw/sw: Srv: MS Windows 2003 SP2 4 GB RAM 40 GB HD (9 GB unused) Intel Xeon E5430 @ 2.66 GHz BO Edge XI 3.1 Integration Kit for SAP systems Microsoft Office 2003 Crystal Reports 2008 Xcelsius 2008 Live Office The

  • T42p and widescreen resolutions

    Hi I am about to get a new external monitor and widescreen came to mind (1920 x 1200). I can't find that resolution available on the driver settings and I haven't found a complete list of available resolutions on the lenovo site. I suspect windows fo

  • Solaris 8 x86 installation

    Has anybody tried to install Solaris 8 on a Dell PowerEdge 2650 or similar machine(dual processor at 2.4GHz each). At the beginning of the install I get ACPI errors but it allows me to continue. After installing all the appropriate drivers and select

  • HTML DOM

    I'm having troubles extracting form tags and their attributes from a html... Wich class should I use for this job?? There is a html parser in JavaSE, right?