Is is possible to validate a form in a workflow?

I have  an .xdp form and .xml file with some data. Using renderPDFForm2 Operation I convert these two files into the pdf document. All this happans in a workflow/process, which is used by some external system. And after convertation a system receives the result pdf document.
So, the question: is it possible to validate pdf document in a workflow? For example, my validation script in a form contains some code for checking if a client age is above 18 y.o. So, if the input data contains client age = 17, i want to return to the system some sort of error, but not the resulting pdf.
An ideal solution which i want to find is some way to validate pdf form without dublicating validation code. Cause i have an idea how to check the age, using variables and expresions in a process. But in that case i'll have this validation both in pdf document (for example, to prevent users from printing not valid pdfs) and in a workflow.

Hi Victoria,
I have a validation script for PDF forms, you can use this script to validate the whole form to verify if any field returns null. This script is only to check if all fields are filled in. There is an exception array which you can insert field's names which you don't want it to be validated. You can then make your own validation for those fields included in the exception array.
So as an example, if your field age is named : txtAge
you would insert the name txtAge in the exception array:
var tabException = new Array("txtAge", "txtAnyOtherField");
var strFirstField = objValidate.getFirstField(form1, tabException);//form1 to be the top most subform or any subform to validate
var boValidate = true;
if (strFirstField != ""){
     boValidate = false;
if (boValidate){
     if (parseInt(txtAge.rawValue) < 18){
          boValidate = false;
          strFirstField = txtAge.somExpression;
     if (boValidate){
          //Any specific validation to be put here before printing
if (!boValidate){
     xfa.host.setFocus(strFirstField);
     xfa.host.messageBox("Error, please make sure data is valid.");
} else{
    xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);
You can use this template form to see how the function works:
Validation / Reset Functions, easy to manipulate and to change Forms!!!!
Hope this helps.

Similar Messages

  • Is it possible to validate a schema defined date

    Hi,
    Is it possible to validate a schema defined date in xsd as of a null type.
         <xs:element name="ContractDt">
    <xs:restriction base="xs:date"/>
    </xs:element>
    In xml file if i want to keep date null and still should be valid......how do i do it
    For eg: <ContractDt></ContractDt>
    <ContractDt>1990-12-12</ContractDt>
    Both the above should be valid.............and any other thing should be invalid. I know we can use patterns and ennumeration to achive this but...............all the other validations that come along schema defined datatype date are required........
    Any help.
    Regards,
    Aru

    Hi,
    I meant this...........
    <xs:element name="ContractDt" nillable="true">
              <xs:simpleType>
                   <xs:union>
                        <xs:simpleType>
                             <xs:restriction base="xs:date"/>
                        </xs:simpleType>
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:enumeration value=""/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:union>
              </xs:simpleType>
         </xs:element>
    Hope my requirement is clear...
    Aru

  • Is it possible to validate the deletion of data in custom SE16

    Hi Guys,
    To maintain a Z table ZCITY (Master Data), I created custom SE16 t-code ZSE16CITY (using SE93 - Transaction with parameters).
    Is it possible to validate the deletion of data from ZCITY Table in custom SE16.
    If ZCODE exists in any of the transaction table then deletion of the record is not allowed and display the message for user.
    Is this functionality is doable in custom SE16 or I have to create a maintenance program using Dialog screen (SE51).
    Thanks for you input.
    mini

    Hi ,
    try this way....
    using SE93 - Transaction with parameters
    next pass the below values in the Name of the screen field and Value
    VIEWNAME                                                <table name>
    DATABROWSE-TABLENAME     <table name>
    Prabhudas

  • Is it possible to create a form with multiple form fields on a single line?

    Is it possible to create a form with multiple form fields on a single line?  I can't find anything in the documentation or a template that does this.
    I am trying to create a "documents received" checklist with a check box on the left margin, a date-received field to the right of the check box and and a description of the document (Formatted Text) on the far right.
    In the past I have entered the Fixed Text with a word processor, published it to a PDF file, then added the check box and date fields with the Acrobat Forms editor.  I would prefer to use FormsCentral if it is possible.

    We now support multiple fields on one line. This post provides a brief overview.
    Give it a try and send us your feedback.
    Sorry it took so long.
    Randy

  • Is it possible to print a form in APEX 2.1?

    Hi,
    Is it possible to print a form in APEX 2.1? I'm able to export a report in cvs, but not a form.
    Thanks.

    If you're just looking to export a single row via CSV, then yes, you can add that functionality to your Form page in any release of APEX.
    Have a look at a blog post I made quite some time ago:
    http://spendolini.blogspot.com/2006/04/custom-export-to-csv.html
    Using this, you could limit the query to only bring back the row that is displayed in the form.
    Thanks,
    - Scott -
    http://spendolini.blogspot.com
    http://www.sumneva.com

  • Is it possible to make a form in iWeb for people to fill in

    Is it possible to make a form in iWeb for people to fill in for people to subsribe

    There  are two possible form types that you can add to your website.  One is using a 3rd party form provider that, when filed in and sent, goes directly to you.  Expamples of them, JotForm and Wufoo can be seen here: Add Form
    Further down that page is the second type,  Form action forms, that use the visitors email application to send the response.  That may put off responders.  Take a look at both types.
    OT

  • Is it possible to display Oracle form as a region in OAF Page?

    Hi
    Is it possible to display Oracle form as a region in OAF page something like a master detail relationship such that Master information is displayed in OAF UI but detail information below is displayed in Oracle forms?Is there a tag that lets one do that specific for Form.
    One way could be do to embed applet in OAF page which would call and display oracle form but not sure if using javascript/applet in OAF would violate OAF coding standards or create some session management issues.
    Regards
    Preeti

    Thanks for your reply.I have seen an implementation that uses Adf and able to display form on same page as in inlinefraame in .jspx page using inlineFrame tag
    <af:inlineFrame inlineStyle="height:700px; width:1380px;"
    id="inlineFrm1"
    source="#{gofDrillback01.targetURL}"/>
    But I guess OAF doesnt have a similar tag to support forms.Thoughts?
    Regards
    Preeti

  • Is it possible to mailmerge a form letter to recipients identified in a database (names, addresses, etc.)?

    Is it possible to mailmerge a form letter so that the mailmerge process produces separate pdf files, one for each recipient identified in a database (names, addresses, etc.)?
    Or is is  it possible to mailmerge a form letter so that the mailmerge process produces one big file that contains a copy of the form letter for each recipient identified in a database?

    Hi marceepoo,
    If you're using Word for Windows, you sure can. See Adobe Acrobat X Pro * Create PDFs from Word mail merges
    Best,
    Sara

  • Form Designer Form. Is it possible to delete a form after it is created?

    Hi
    Is it possible to delete a form once its created in the system?
    Regards Glenn

    GlennA wrote:
    Hi
    Is it possible to delete a form once its created in the system?
    Regards GlennIn case you are interested, following can be done at database:
    Say, if you want to delete UD_ABC form (Process Form/Object Form/Parent Form/Child Form)
    delete from FUG where SDK_KEY in (select SDK_KEY from SDK where SDK_NAME='UD_ABC');
    delete from OSI where TOS_KEY in (select TOS_KEY from TOS,SDK where TOS.SDK_KEY = SDK.SDK_KEY and SDK_NAME = 'UD_ABC');
    delete from UNM where TOS_KEY in (select TOS_KEY from TOS,SDK where TOS.SDK_KEY = SDK.SDK_KEY and SDK_NAME = 'UD_ABC');
    delete from MSG where TOS_KEY in (select TOS_KEY from TOS,SDK where TOS.SDK_KEY = SDK.SDK_KEY and SDK_NAME = 'UD_ABC');
    delete from MST where MIL_KEY in (Select MIL_KEY from MIL where TOS_KEY in (select TOS_KEY from TOS,SDK where TOS.SDK_KEY = SDK.SDK_KEY and SDK_NAME = 'UD_ABC'));
    delete from RML where MIL_KEY in (Select MIL_KEY from MIL where TOS_KEY in (select TOS_KEY from TOS,SDK where TOS.SDK_KEY = SDK.SDK_KEY and SDK_NAME = 'UD_ABC'));
    delete from RSC where MIL_KEY in (Select MIL_KEY from MIL where TOS_KEY in (select TOS_KEY from TOS,SDK where TOS.SDK_KEY = SDK.SDK_KEY and SDK_NAME = 'UD_ABC'));
    delete from MIL where TOS_KEY in (select TOS_KEY from TOS,SDK where TOS.SDK_KEY = SDK.SDK_KEY and SDK_NAME = 'UD_ABC');
    delete from ODF where TOS_KEY in (select TOS_KEY from TOS,SDK where TOS.SDK_KEY = SDK.SDK_KEY and SDK_NAME = 'UD_ABC');
    delete from OIU where ORC_KEY in (Select ORC_KEY from ORC where TOS_KEY in (select TOS_KEY from TOS,SDK where TOS.SDK_KEY = SDK.SDK_KEY and SDK_NAME = 'UD_ABC'));
    delete from ORC where TOS_KEY in (select TOS_KEY from TOS,SDK where TOS.SDK_KEY = SDK.SDK_KEY and SDK_NAME = 'UD_ABC');
    delete from TOS where SDK_KEY in (select SDK_KEY from SDK where SDK_NAME='UD_ABC');
    delete from SDC where SDK_KEY in (select SDK_KEY from SDK where SDK_NAME='UD_ABC');
    delete from SDL where SDK_KEY in (select SDK_KEY from SDK where SDK_NAME='UD_ABC');
    delete from RAV where SRE_KEY in (select SRE_KEY from SRE,SDK where SRE.SDK_KEY=SDK.SDK_KEY and SDK_NAME='UD_ABC');
    delete from SRE where SDK_KEY in (select SDK_KEY from SDK where SDK_NAME='UD_ABC');
    delete from SDK where SDK_KEY in (select SDK_KEY from SDK where SDK_NAME='UD_ABC');
    delete from WIN where WIN_KEY in (select WIN_KEY from WIN where WIN_WINDOW_NAME = 'tcfrm' || 'UD_ABC');
    delete from SEL where DOB_KEY in (select DOB_KEY from DOB where DOB_NAME LIKE '%UD_ABC');
    delete from DOB where DOB_NAME LIKE '%UD_ABC';
    drop table UD_ABC;
    Disclaimer: Oracle does not recommend deleting forms.

  • Is it possible to recover autofill forms that has been removed

    I accidentally clicked remove all (instead of remove 1) in the autofill preference.
    Now I have many sites that I can't remember the passwords.
    Is it possible to recover web form passwords that has been removed from autofill?
    Also I couldn't find them in the keychain. Please Help

    Also I couldn't find them in the keychain.
    Open Keychain Access  /Applications/Utilities
    Select Passwords on the left.
    Use the search field top right corner of the Keychain Access window to find web site addresses
    If you want Safari to "remember" a new password for a site, first make sure User names and passwords is selected in Safari / Preferences - Autofill.
    Navigate to a site. Enter the user name and password. When prompted, click Yes. That will create a new keychain for that site for you.

  • Is it possible to run a form offline (in the background)..?

    Is it possible to run a form offline (in the background) by passing all the required parameters? I know this sounds crazy...but like to know if a form can be run in silent mode.
    This will help us in reusing the form for online and background processing.
    Thanks.

    If there is something to run in background, why would that be a form? Normally, a form is supposed to interact with the user.
    If you want to do some data crunching in the database in background, then that should be a job. And, if needed, you may submit the job even from a form, after which you may close the form. RTM for dbms_job and dbms_scheduler - that should help.

  • Is it possible to have a form that is completed in sections?

    is it possible to have a form that is completed in sections with each section being submitted when it is completed until the last and final section is eventually submitted?

    Hi,
    You cannot submit a form by sections, but you may fill out sections of the form and save it and then submit the form at the end when you have completed all sections of the form. Here is how to enable the function to allow users to save web form data over a period of time: http://forums.adobe.com/docs/DOC-4135.
    Thanks,
    Wenlan

  • Is it possible to have a form for 2 individuals to complete before submitting?

    Is it possible to have a form for 2 individuals to complete before submitting? The first person will fill out a portion of the form and the second person will fill out the rest of the form and submit.

    You can create a submission-enabled PDF first. Ask the first person to fill out his or her portion of the PDF form and save the file. Send the saved file to the second person and have him or her to fill out the rest of the PDF form and submit.
    To create submission-enabled PDF
    1. Click on the Distribute Tab
    2. Click on the "Save Sumbission-Enabled" PDF button.

  • In Forms Central/View Responses/Save as PDF, is it possible to exclude some form fields?

    in Forms Central/View Responses/Save as PDF, is it possible to exclude some form fields from the saved file?

    Hi,
    I would like to inform you that with forms central, you can convert the selected fields to PDF.
    However, your selection should be sequential. Example- You can convert column 1,2,3,4 and not select column 5; but it is not possible to select only column 2 and 3.
    Regards,
    Nakul

  • Form 11g - Is is possible to block specific forms access when user directly type form name in url ?

    Hi everyone,
    We have XXF000.fmb, XXF001.fmb , XXF002.fmb , XXF003.fmb in 6i.
    For migration to 11g , we recompile these forms and move fmx to 11g form server under form_path.
    In 6i , we login for validation & responsibilities control in XXF000, So we can use account info to verify if user have priviledge to access XXF001, XXF002 and XXF003.
    But in 11g , we can access these forms vial url request , such as : http://<host>:<port>/forms/frmservlet?form=XXF000   ; http://<host>:<port>/forms/frmservlet?form=XXF001  ... etc
    These may cause some unexpected access and operations in functions.
    Is is possible to block specific forms access when user directly type form name in url ?
    Thanks.
    Hendry

    You need to alter your formsweb.cfg file, either directly or through the Fusion web interface. You need to set the following parameters:
    #this sets the default form for your application
    form=yourmenuform.fmx
    #this stops these parameters being entered in the URL, seperate different parameters with commas
    restrictedURLparams=form,pageTitle,HTMLbodyAttrs,HTMLbeforeForm,HTMLafterForm,log

Maybe you are looking for

  • Connecting Sony PC55 to iMac, which cable?

    Is this the right cable for connecting the Sony PC55 to the iMac? FIREWIRE CABLE IEEE iLink 1394 6 - 4 pin DV DIGITAL. Thanks in advance for any help. J.

  • Sales Order Block removal

    I have made an block in the Sales Order type as HOBlock for my order type.As every sales order is created it goes into that block and order get saved. Now i want other than VA02 Tcode to remove the block.

  • Would you like to use Sensor ?

    I must admit im now getting a little annoyed that Nokia's "" Sensor "" is not compatible with the new phones be it N or E series. http://www.nokia.co.uk/nokia/0,,73651,00.html Every time I contact Nokia to ask if it is being devolved so we can use it

  • HIERARCHY_NOT_FOUND

    Hi Gurus, We are getting the following error when we are trying to execute a query "HIERARCHY_NOT_FOUND". On further analysis we found the following information: A RAISE statement in the program "SAPLRRHI" raised the exception condition "HIERARCHY_NO

  • Photoshop CS mouse+keyboard shortcuts

    Hello, I use this cs5 release after years passed with photoshop 7, which is the best for me. I try to find an option to change shortcuts but without success. When I use brush, ctrl+alt+right click change the brush size and ctrl+alt+shift+right click