createDataObject in livecycle of value of a text field

Hi Experts,

Can someone help me story a data value of a text field createDataObject object. Content of the text field is multiline.

These two simple lines are works fine in acrobat console, but not under a key click livecycle event.

var cMyC = "sample string";

this.createDataObject ("test.txt", cMyC);

Please suggest.

Concerning

Arvind

In LiveCycle Designer, you need to replace this with event.target to use Acrobat script methods.

var cMyC = "sample string";
event.target.createDataObject("test.txt",cMyC);

Tags: Adobe LiveCycle

Similar Questions

  • How can we make invisible static value in a text field to the OPA

    Hi all

    I have invisible static value in a text field in the OPA.

    For ex: field contains the value 100 while we manage the maintenance should not display the value 100 or make us the text as invisible field. whenever we submit the interview the value should be passed.

    I made the background color of the text in white field, but it reflects all the text fields. I need to make the text of the particular text as invisible field. Can someone give me a solution for it.

    Use two different attributes (the one that is indicated in the interview to the need - for example, as "the id selected user" or whatever the phrase is appropriate) and a different attribute, which is the mapped attribute.  The second attribute must not be on any screen of the interview (by thus "invisible" for the user).  Write a table of rules that concludes that the value of the attribute mapped on is EITHER static value or the selected/expected value according to some logic is appropriate to make a decision in your model of strategy.

  • Check the boxes based on the value in a text field

    Hello.

    I'm building a pdf form in Acrobat Professional X. I want to add JavaScript to two checkboxs to achieve the following objectives:

    If the value of a text field (TLigne) is equal to 61, 64, 66 or 67, the first box (PlanACheck) has the value of the object of an audit.  If the value of a text field (TLigne) is equal to 60, 62 or 63, the second box (PlanBCheck) has the value of the object of an audit.

    I have no other than copy and paste Javascript experience, so I'm not sure I use the right language to research. If anyone can provide guidance, I would be very happy.

    Thank you very much!

    Usually this kind of thing will run the custom calculation of the target field script, but the boxes is not a calculation script, so we'll use the text for field Validation script do, with this code:

    this.getField("PlanACheck").checkThisBox (0, (event.value == "61" | event.value == "64" | event.value == '66' | event.value == "67"));

    this.getField("PlanBCheck").checkThisBox (0, (event.value == "60" | event.value == "62" | event.value == "63"));

  • Web page open based on the value of the text field

    I want to open a web page that is based on the value of a text field.  How to bind the value of a text field to a command which will open the web page?

    For example, the value of the text field is: 8 t - EXT

    and the web page I want to open when you press a button is: http://hqms/doc.asp?dn=8T-EXT

    As you can see that the 8 t - EXT is something that a person enters the form and is what is needed to open the web page.  The other text in the link of the webpage is always the same.

    Thank you

    Hello

    In the click event of the button, place the following JavaScript code:

    if (TextField1.rawValue !== null) {
         var vURL = "http://hqms/doc.asp?dn=" + TextField1.rawValue;
         app.launchURL(vURL, true);
    }
    else {
         app.alert("Dear user, please put a code in the text field. Thank you!");
    }
    

    You need to change the object references based on your shape.

    Niall

  • Referring to the value of a text field, not the legend

    How to refer to the value in a text field to make the data entered by the user "BOLD" / no fat without the caption of a field text in bold or not bold?

    Hello

    Two lines should do. The first turn the caption and the "BOLD" value, then the second changes the legend of back to normal:

    TextField1.font.weight = "bold";
    TextField1.caption.font.weight = "normal";
    

    Hope that helps,

    Niall

    Ensure the dynamics

  • Set by default to the value of another text field

    I imported a several page PDF in LiveCycle Designer.  I place a text field on each page of the PDF file.  I want the user can click in the text field on the first page and type its value.  Then I want to fill in any other fields of text on other pages.  How do I put the default value of the other fields to make this work?

    You can bind the fields in the object > tab link. Simply, name them all the same thing and change the global default binding.

  • By assigning a value to a text field not working PHP/javascript?

    I have a site to someone else coded, where a text field does a value that is assigned.

    Both
    Form1.textfield3.value = form1.textfield1.value;
    and
    Form1.textfield3.value = "99";

    not work, and the field is left blank.

    This same code works on Internet Explore (Win and OSX), Safari, Chrome and Opera. It does NOT work on Firefox 8 or 9.01 (Win and OSX) or 3.6.25. He used to work on an older Firefox, we had (unknown version).

    JavaScript is enabled; is there anything else we can check?

    If you check the error in Firefox (Ctrl + Shift + j) Console, you will see "form1 is not defined. This is because Firefox converts automatically form1 in reference to < form = "form1" name >. Instead, you must change the code a bit.

    You can fix the above error starting each function where you refer to form1 with this:

    Form1 = return ["form1"] var;

    However, probably just move the error to the next part of the notation (for example, textfield3). The proper way to refer to the value of a form field named is:

    document. Forms ["Form1"]. Items ["textfield3"]. Value

    or if you have set form1,

    Form1.elements ['textfield3'] .value

    If you have a few changes to make. Not sure if there are shortcuts.

    This forum focuses on the care of the end user. You can find more help web development on the mozillaZine Web Development Council. Separate forum, separate registration.

  • Data clean on a numeric value in the text field

    Hello team,

    There is a field called 'turnover' in our Eloqua instance. It is a text field, but contains mostly numeric values synchronized in the same field of SFDC. The SFDC field is numeric.

    I am trying to write a program of standardization of data that uses the "Annual sales" value to update another field, "standardized annual income", with the value appropriate for example Strip $0 to $5 M, $5 - $10 M, $10 / $20 M...

    I created a rule to update that search values:

    • between 1 and 5000000 "turnover" and updates the "standardized annual income" field of $0 à $5 M
    • between 5000001 and 100000 in the "Annual income" and updates the "standardized annual income" field $5-$10 M
    • and so on...

    However when I test it I get the correct value in 'annual standardized income. " I also tried using filters to make contacts with the "annual income" values between 0 and 5000000 but I get all kinds of values outside this range.

    Can someone tell me where I'm wrong? Is it because the data type of the field 'Turnover' is the text rather than digital? I guess I could create a new numeric field for "Annual income", write values existing in this area and change the SFDC integration but I would avoid it if possible. If anyone has any bright ideas, I'd love to hear them.

    Thank you

    James

    For anyone interested, I got the answer from the Support. As it is established as a text field that eloqua is trying to make an alphabetical "between" rather than a digital "between". As it is not possible to change the data type of a field, I need to create a new digital field, export the data to the existing field (as well as email address) and upload again to the new field.

  • Validate the value of the text field

    Hello.

    I found this code:

    the value of power reactive

    var a = this.getField ("Name1");

    var two = this.getField ("Name2");

    var 3 = this.getField ("Name3");

    This feature assembles two field values into one with "and" as a separator.

    function concatFields (field1, field2, fieldDest) {}

    make sure that all variables are present

    If (Field1 & & Field2 & & fieldDest) {}

    var fieldVals = new Array();

    If (field1.value! = "& & field1.value! = null) {}

    fieldVals.push (field1.value);

    }

    If (field2.value! = "& & field2.value! = null) {}

    fieldVals.push (field2.value);

    }

    fieldDestResult = fieldVals.join ('and');

    fill the fieldDest only if it is empty

    if(fieldDestResult.value!=''|| fieldDestResult.value!=null) {}

    fieldDest.value = fieldDestResult;

    //}

    }

    }

    concatFields (one, two, three);

    These values to combine text two fields into one (text field nr.3) and put 'and' between the values. It works OK. But what happens if the two values are equal? Then, I need that one value is fill in field Nr. 3. Then. If the field 'Name1' and 'Name2' values are different, the two are combined in "Name3",... If the values are equal, the only one of them will be send to "Name3" on the ground.

    How can I do?

    Thanks for the reply.

    There is no coma have been a period should be. Be the soul of the last four lines:

    var Text1 = this.getField("Name1").valueAsString;

    var Text2 = this.getField("Name2").valueAsString;

    if(Text1 == text2) Text2 = "";

    Fill-in = Event.Value (Text1, Text2, "", "and");

    Additional code can be added to remove the distinction uppercase / lowercase and trim leading or white end space.

  • LiveCycle - police car in the text field

    I use 8 Professional - Livecycle and I have several areas of text field. I want to make the police in 'auto' text fields where they are trying to set within the area. I have trouble finding in via Livecycle. I can find it on my Adobe regular but not Livecycle. Help, please!

    Thank you

    I was able to understand. I just need to change the font to zero size.

    Thanks for your help.

  • How to automatically remove the "Default Value" of the text field text.

    Y at - it a java script, or something that I can apply to a text field that would automatically "By default" disappear when the person clicks on this area?  Instead of the need to highlight the text before you start typing...

    Screen Shot 2012-10-02 at 4.05.07 PM.png

    It is dangerous because it clears the field of the value entered by the user. In addition, event.value does not work in this context. You must use event.target.value.

    You use it for the event on Focus:

    If (event.target.value == event.target.defaultValue) event.target.value = "";

    And for the event on the blur:

    If (event.target.value == "'") event.target.value = event.target.defaultValue;

  • Value of the text field delete after click

    There is a text field with the value "type your name". When click in the text field, the value will be automatically deleted. We type "Adobe", then click on outside. If you still want to type 'cycle' after 'Adobe' (no delete Adobe or retype "adobe")

    Is this possible? How can I get?

    Hello

    The other way to do this is to go to object > palette on the ground and set a display model of the null state.

    See page 2 of the form example here: http://assure.ly/ewrLMo.

    At its most simple requires no script:

    In our example we have script in events enter and exit to change the police, but this step is entirely optional.

    Hope that helps,

    Niall

  • engaging multiple values to a text field for a button

    I have a form that has several buttons that uses the items.push (command/script/EC) that you have to put some text in a text field.  People are asking now that they can put several selections from the button in the field.  Can someone point me in the right direction, or suggest a way to do it?

    I have attached a screenshot.  I clicked the button on the left to view features of the buttons and right I already have something of the key and he was placed in the text field.  I would like to be able to place several things in the field of the key even if possible.Screen shot 2011-01-19 at 12.14.18 PM.png

    You could change the code to:

    If {(response)

    Get a reference to the text field

    var f = getField ("competency");

    Add the selected value field, separated by a carriage return (except if the field is empty)

    f.Value = f.value? f.Value + "\r" + elements [answer]: [answer] points;

    } else {}

    App.Alert ("You have not selected an element.", 1);

    }

  • Send one of the 5 checkbox values to a text field

    I try to send the value of one of the six checkboxes checked to a text field and just cannot get by.  Can someone help me.

    Here is the script I tried to work with.  I know it's fake because it does not work.

    var architect = getField ("Chkbx Arch")
    var engineer = getField ("Eng Chkbx")
    var landscape = getField ("land ChkBx")
    var inner = getField ("Int Chkbx")
    var other = getField ("another Chkbx")

    If (architect == 'Architect') {}
    Event.Value = "Architect";
    }
    ElseIf (engineer == 'Engineer') {}
    Event.Value = "Engineer";
    }
    ElseIf (landscape == "Landscape Arch.") {}
    Event.Value = "Landscape Architect";
    }
    ElseIf (inside == 'Interior Designer') {}
    Event.Value = "Interior Designer";
    }
    Else if (other == 'Other Designer') {}
    Event.Value = 'Other Designer';
    }

    Have you watched the JavaScrpt console to see if you get any errors reported in your script?

    JavaScript is a language "object" oriented. You must identify an object, and then access properties or methods of the object. 'event' is an object and it has a property of 'value '. If the code 'event.value = 'string';' sets the value of the current event to the string "string". The "' it's the current PDF document. "getField" is a method of that object that gets a field named object. Once you have this object, you must use the 'value' property to get the value of the named field

    .

    If you want the boxes to be exclusionairy, one authorized selection, you should give them all the same name and assign different values for export.

    function() {return A.apply (null, [this] .concat ($A (arguments)))}

    var architect = this.getField("Arch_Chkbx").value;
    var engineer = this.getField("Eng_Chkbx").value;
    Landscape of var = this.getField("Land_ChkBx").value;
    internal var = this.getField("Int_Chkbx").value;
    var other = this.getField("Other_Chkbx").value;

    else event.value = ";

    If (architect == 'Architect') {}
    Event.Value = "architect."
    }
    ElseIf (engineer == 'Engineer') {}
    Event.Value = "engineer."
    }
    ElseIf (landscape == "Landscape Arch.") {}
    Event.Value = "landscape architect";
    }
    ElseIf (inside == 'Interior Designer') {}
    Event.Value = "Interior Designer."
    }
    Else if (other == "Other Designer") {}
    Event.Value = 'Other Designer';

  • Search and replace values in the text field before the values are stored in DB

    Hello
    There is a question - answer and text box text field - in my application. Problem is, some of the answers are stored with the apostrophes to the DB and I have a problem while recovering in the DB. I need to replace the single quotes 1 with 2 apostrophes. The values are stored in the DB when you click on the submit button.

    So, I'm using the following javascript code:
    italics
    < script type = "text/javascript" >
    function test().
    {
    var str = "& P2_S1.";
    document. Write (Escape (STR));
    }
    < /script >
    italics
    I need to call this javascript function, when the user clicks on the button submit, but BEFORE the values are stored in the DB. How can I get this done?

    Please let me know.

    Hi Suzi,

    Just use

    begin
    update test set S1=replace(:P2_S1, '''', '''''') where name=:APP_USER;
    end;
    

    as you did in your SELECT statement.

    But I shake also why you want to do? Where do you have problems with the apostrophe?

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins

Maybe you are looking for