Change horizontal text frame (text box) with script?

Hello

I looking for something that might be simple but am not being able to solve... When I'm inside a document I created (or the one I opened), I want to be able to change the block of text horizontally.

What I'm trying to do, it's exactly what I can with file > Document format > text - box width. If I reduce that number to, say 60 mm, the result is exactly what I want. But I wasn't able to find a way to do it through javascript...

I tried the sample scripts for an answer or this forum or on the internet, but I don't know how to do it. And I have this feeling, it's pretty simple... Maybe by creating a menu script action?

I am using InCopy CS4.

Thank you!

var doc = app.activeDocument;
doc.documentPreferences.textAreaWidth = 60;

Tags: InCopy

Similar Questions

  • Change the text in a text box with Script

    Hello

    I have a text box that lists the word 'English' that identifies the manual in English on the title page. I have copy and translate this manual. On the translated manuals, I want to change that "English" in the word "Spanish" or "Japanese" by using a script. What would be the right way to do it? I could do a search and replace only targeted the first page or is it possible to give a text a box identifying unique to call in the code? Should I 'script labels?

    Hello

    The label property depends on whether you're using CS5 or upward.

    CS4 and earlier versions, just use the script label.

    Select the image with the Selection tool and write the name in the Script label palette.

    CS5 and until you need to select the text block, open the layers palette, find the text block, you want to quote, you will see an indication of color, then you must click on the label of on this palette and give it the desired label.

    in any case, the code to use is, if you call your frame in the form "a":

    myFrame = app.activeDocument.textFrames.itemByName ("a");

    hope this helps

    See you soon,.

    Eli

  • How do complete you 1 text box with multiple drop-down list values

    I can fill in a text box with a value in a drop-down list, but if I have 2 drop-down list values going to the same area of text (multiple lines), the second drop-down list value removes the first value.

    (A similar code on the drop-down list 1 and 2 from the drop-down list)

    Change event - JavaScript

    If (xfa.event.newText == 'No') {}

    Form1.Page1.subform2.Description.RawValue = "no location listed.

    }

    If (xfa.event.newText == "Partial renting") {}

    Form1.Page1.subform2.Description.RawValue = "enumerated part place."

    }

    Do I have to Concat the fields in 1 text field so that it can have several values in drop-down list, and if so how do I do that?

    Thanks in advance for your help.

    Resolved:

    Place this script in the root of the subform in the FormReady - JavaScript event.

    oList var = this.getDeltas ();

    for (i = 0; i< olist.length;="" i="">

    {

    var oDelta = oList.item (i);

    oDelta.restore ();

    }

    Answer was found at http://forms.stefcameron.com/2008/09/29/restoring-the-of-your-form/

  • Turn off the text box with the value of the checkbox

    Hello people,

    I am trying to activate or disable the text box with the value of the CHECKBOX, I have got the same thing with the BOX of ELECTION, with the javascript as follows: -.

    HEADER HTML
    ----------------------
    < script type = "text/javascript" >
    function disableOnValue (o)
    {
    If (o.value == 'Y')
    {
    document.getElementById('P2_TEXT_BOX1').disabled = false;
    document.getElementById('P2_TEXT_BOX2').disabled = false;
    document.getElementById('P2_TEXT_BOX3').disabled = false;
    }
    on the other
    {
    document.getElementById('P2_TEXT_BOX1').disabled = true;
    document.getElementById('P2_TEXT_BOX2').disabled = true;
    document.getElementById('P2_TEXT_BOX3').disabled = true;
    }
    }
    < /script >
    ---------------------

    under region Source whose Point display is < b > before < /b > foot and sequence is the last sequence of the entire region
    ----------------
    < script type = "text/javascript" >
    If (document.getElementById('P2_RADIO_BUTTON_0').checked is true)
    {disableOnValue (document.getElementById('P2_RADIO_BUTTON_0')) ;}
    on the other
    {disableOnValue (document.getElementById('P2_RADIO_BUTTON_1')) ;}
    < /script >
    ----------------

    and finally, to the title of point RADIO_BUTTON, HTML Form element attributes: -.
    -----------
    OnChange = "JavaScript:disableOnValue (this); »
    ----------

    the thing above works very well with the help of the RADIOBUTTON, but I want to try same thing with the CHECK_BOX I also tried a few changes but did not have any success so if someone help out me even that will be great and appreciated!


    Thank you

    Kind regards
    Kumar

    I also have the following in the Footer region region:

    <script type="text/javascript">
    x($x('P12_CHECKBOX'));
    </script>
    

    This is just to make sure that the items are disabled when the page is loaded, because the checkbox is deactivated

    Andy

  • Replace the text box with Image through breakpoints

    Hello

    I'm looking to replace the text boxes and icons with images and want to know if I can do this on several break points at the same time without having to go and manually change each breakpoint.

    My site is here: Movement of Boulder

    In the Services section of the wider breakpoint, you can see the images that I want, but if you minimize the browser window, you will see the images and the text that he was supposed to replace. Is it possible to replace all the text boxes with the images you want?

    Hello griffinb,

    If you delete a breakpoint text areas, they will be removed from all.

    After you have placed your image just right-click on it and select the option ' copy the style and position > to other breakpoints.

    Let me know if you have any problems getting there.

    Kind regards

    Ankush

  • How to change the text box in Acrobat XI, created by earlier versions of Acrobat

    Hi, I'm having a hard time trying to figure out how to change a text box that was created in an older version of Acrobat and used to fill in a form.

    In my case, I added text boxes on text pre-existing using an earlier version of Acrobat.

    When I try to click on the text box, however, it seems to be back on the existing text and not allow me to change the text box I created in the past.

    Try changing the text with the tool 'Add comment text' which is in the notes pane. The text used to complete the form may have been written as annotation, so when you try to change those with editing tools, the original text is being edited.

  • Cannot change the text box.

    Adobe Acrobat DC recently auto updated to the latest version, and it seems that the new version does not change the text boxes.

    The screenshot below shows what I mean.  I added a text box and pointed the police to change the size / font style / color, but it is gray just to go out in the toolbar properties (Ctrl + E)

    ADOBE CANNOT EDIT TEXT BOX.JPG

    Has anyone experience this problem?

    Hello

    We have released an update today which solves the problem of the properties toolbar and now you can continue to use it outside of the app commenting as well. Please open Acrobat or Reader DC and visit help > check for updates to ensure that you are on the latest patch.

    Details on the release: https://helpx.adobe.com/acrobat/release-note/acrobat-dc-august-02-2016.html

    Please let us know how it goes.

    Thank you

    -ashu

  • Text box with AutoC fails the first time around

    4.2.1

    Hello world

    A text box with Auto c0mplete and the willing lov query of a filter on an another field (actually), two of which are defined by dynamic actions. Whats happening is the AutoComplete does not work. I've set up here

    In fact, when the user selects the command 1, it has only 1 product, it will show a field of the view, if you select 2, she has two products so that it displays a list of selection with B and C. Now when the user select all products like A, B etc. then it should be able to further refine research where when he register has, then the seizure AutoComplete search box shows ABDELKRIM (the name of the product)

    If possible if you can duplicate the page rather than modify the existing one on would be very nice incase you are testing.

    Thank you!

    The LOV query for the AutoComplete P586_SEARCH_LOV element depends on the value of the issue of P586_PRODUCT_NAME_LIST session state:

    select product_full_name from product_details pd, products p
    where  pd.product_name =p.product_name and
    p.product_name = nvl(:P586_PRODUCT_NAME_LIST,:P586_PRODUCT_NAME_DISPLAY)
    

    As you can see by using the Session Viewer, this was not initially a value.

    The value of P586_PRODUCT_NAME_LIST is assigned dynamically using LOV cascading. Similarly, P586_SEARCH_LOV must also be an element of LOV cascading, the property Parent of the LOV cascading item (s) to P586_PRODUCT_NAME_LIST.

    Note that the only State of Session save of P586_PRODUCT_NAME_DISPLAY display property is set to No, meaning that it does she hold a session state value. Its use in the P586_SEARCH_LOV LOV query is therefore redundant, following the the: P586_PRODUCT_NAME_DISPLAY variable bind reference will always be null. P586_PRODUCT_NAME_LIST still holds the value of product name, even when it is not visible.

    Questions in these last days, looks like you need to refresh your understanding of APEX session state...

  • How to get the description of text box with some HTML &lt; P &gt; tag

    Hi friends,

    I created two point, an element of box P1_RICH_TEXT_FIELD rich text field and a text item field area P1_TEXT_AREA. I created the calculation process to copy the value of P1_RICH_TEXT_FIELD in P1_TEXT_AREA. Calculation works well but contect copy in P1_TEXT_AREA are

    < p >

    Test Test description description < /p >

    < p >

    Test DescritionTest DescritionTest description < /p >

    < p >

    Test DescritionTest DescritionTest description Test Test DescritionTest Test Test Test Descritionhkjhkh < /p > description description description description


    I need to copy with the tag < p >.


    How to get the description of text box with the HTML < P > tag



    Thank you

    Hi Alex,

    Thank you very much. You want very criticle problem for me. Thank you very much.

    Now, there are several tags in the rich text field

    "span, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, big, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, b, u, I, Center, dl, dt, dd, ol, ul, li, label, table, caption, tbody, tfoot, thead, tr, th, td" etc.

    How can I move all these in REGEXP_REPLACE (: P1_RICH_TEXT_FIELD, ')

    |

    (", 1, 0, im ') code.

    Thank you

  • How to use the selection tool to resize a text box? Before I was able to click on the text box with the selection too in order to resize, but now I click on it and it only gives me 'path' or 'anchor' options.

    How to use the selection tool to resize a text box? Before I was able to click on the text box with the selection too in order to resize, but now I click on it and it only gives me 'path' or 'anchor' options.

    Ashley,

    What about window > show the rectangle enclosing (Ctrl / Cmd + Shift + B to toggle)?

  • Add up the scores in the text box with a variable

    Hello

    I create a quiz form that does not use the quiz slides (5,5) standard Adobe Captivate. I get the learner to mark themselves and enter the score into a text entry in a TextAreaWithVariable area. The scores are then displayed on the last page in the corresponding text box TextAreaWithVariable.

    I wish that Captivate to add up the scores on the last page. I've read somewhere that you use Actions in advance, so when the student enters the page it triggers the calculation by using the action of the Expression. The problem is that when you configure the action, it does not recognize the three TextAreaWithVariables on the page. They are all appointed, but the action does not pick up them.

    Could you get it someone please let me know where I am going wrong here.

    Thank you very much

    Nick

    Hi Nick,

    I've been blogging on the use of the text with Variables by Jim box:

    Extended features

    In the article referenced to in this post, you will find explanations in detail the advanced actions that I used.

    But I'm a little afraid that I need additional information:

    • you have a text box, with its variable partner on one page and this variable gets its value (20) by the user
    • How many of these slides you?
    • but then, you talk of multiple partitions that you want to summarize in a total variable to be displayed on another TextArea widget to the last slide.

    How you trigger the advanced actions to calculate the sum? I suggest that use you the action on enter each slide after the first question slide to temporary sum. Try to explain:

    1. Score of the first slide in question entered by the user and stored in the variable v_quest1
    2. Entering the second question slide create this advanced standard action triggered by action on enter on this slide
      • Expression v_sum = v_sum + v_quest1
      • Continue
    3. Entering the third question slide create a similar action with the score stored in v_quest2
      • Expression v_sum = v_sum + v_quest2
      • Continue
    4. When you enter the slide of score you the last of this breakthrough of similar actions to trigger and the final result will be in v_sum

    If you do not need to keep the individual from each question scores, you can even re - use only a single variable v_quest that would be associated with all widgets except on the slide to score and you can reuse the action advanced on each slide without having to edit.

    Lilybiri

  • Some way to work in a text box with HTML javascript editor

    Hello

    I understand that javascript does not work in a text box with the HTML editor. I need to use an event of javascript onFocus on my article which is a text box with the HTML editor. Someone did another way? Thank you.

    Suni

    Suni,

    If you are talking about The MINIMAL HTML EDITOR or HTML STANDARD EDITOR then APEX is actually creates a version of the FCKEditor .

    You can record events with the FCKEditor using JavaScript. I find including code JavaScript in the footer of the page TEXT are preferable because it is less likely to encounter problems that FCK editors still instantiated yet.

    Here's and example popping up an alert on the entrance and exit.

    
    

    The first function (FCKeditor_OnComplete) logs an event OnFocus and OnBlur with the FCKEditor that its creation is complete. Aware however that in this example, the events will be be assigned to EACH instance of the FCKEditor on the page. If you want to reduce it to a single or to assign different events to instances of the editor, you could do it using the IF or CASE instructions inside the OnComplete function.

    I hope this helps.

    Doug Gault
    [Sumner technologies | http://www.sumnertech.com/]

  • To create a text box with a colored background but the text didn't appear not

    I'm doing a map of color-coding. It's just a black and white base card, but I filled in the cities with different colors using the paint bucket tool, to show which region they belong to.

    At the bottom of the map is a list of five regional offices and the offices of the area covered by each of them. I was hoping to create a box around the text, and then fill it (the box) with the color that corresponds to that particular region.

    Using the rectangle selection tool, I call a box around the text and filled with color. The opacity is set to 100%, so the text behind it disappeared completely. If I reduce the opacity of the text appears in grey, but I want the text to stand out and to be black.

    Using the Horizontal type tool I tried to redo the text everywhere again. However, the text I typed (see the text layer name) was not appear.

    Then I went in the character window and clicked rest character, hoping that the text arise, but it still does not work. The blue fill layer covers the original text, but is there a way to keep this original text, always be black, in order to keep the blue background? Or redo the entire text again in a new layer (as I tried to do below) would make more sense?

    Color-coding a Regional Map in Photoshop.JPG

    Change the blending mode of the layer of color, darker color should work well.

  • Change the text color with the eyedropper tool

    I've seen cc Photoshop tutorials where you can change the text color by using the eyedropper tool on the color swatch Panel. When the text is selected and the color swatch Panel is open. When I chose is which color I want out the color swatch Panel all them it does to change the foreground color and return to the soil box, why it changes the color of the text, as I have seen in tutorials?

    Any help would be appreciated.

    Thank you

    Rchjr

    When highlighted often is difficult to tell what color the text. You can work around this by doing the above, pressing ctrl-H or cmd - H on the keyboard and the highlight will be removed, but the text remains selected. Its exactly the same procedure that you use to make the mobile dotted lines disappear just leaving an active selection. Obviously the text tool must be still in use for all this to work with text.

  • Radio buttons change a text box to display the different values

    Hey I am relatively new to muse and I wanted to know if there is a way to choose an effect to another thing. A text box to read '1' and then checking option 2 for example selecting the option 1 changes make the text box read "4".

    If someone could help me that would be so useful ive been stuck for centuries and could not find any help. This is my last resort.
    Thank you.

    This requires scripts to change the values of elements within a form. Muse does not offer this to off the bat, but you can find plenty of examples on the web that you can insert into the custom HTML code.

    Mylenium

Maybe you are looking for