script to change selected text format, please

Ask a Question related to FileMaker, Design and Development.

  1. #1

    Default script to change selected text format, please

    can anyone help with script so that i can press a radio button and
    change the selected text format (i.e. bold red)
    thanks in advance
    weather in Isle of Axholme, England, sunny 13 degrees c, sun shining
    on lovely flame red autumn leaves.

    best regards
    mal

    [email]malawayfromhome@hotmail.com[/email]
    mal anderson Guest

  2. Similar Questions and Discussions

    1. Getting selected text
      Leonard, In your first reply you say "From the IAC/COM APIs, that is the only way." So is there actually a way to get the selected text, or is...
    2. current selected text to highlighted text on mouse up event through java script
      hi everybody, I want to convert the current selected text to highlighted text i.e. to yellow background on mouse up event on pdf form through...
    3. Variable format change in MX 7?
      I am currently upgrading my website from CF 5 to CFMX 7. I heard from someone on this forum that the way you declare and write variables has...
    4. Change Date Format
      I have a date being entered into a textbox in a dd/mm/yy format, however I need to be able to change this format to a yyyy/mm/dd in order to pass the...
    5. Change Format
      Hi I have a datagrid control that I want to be able to change the source SQL statement for, I presume I can do this by setting the datasource...
  3. #2

    Default Re: script to change selected text format, please

    Hi Mal,

    You don't need a script. Here's what you need:

    1. A field with your target text (e.g. "Name")
    2. A field validated by a value list that has your choices (e.g. Red and
    Blue; we'll call it "select" for this example). Format this as Radio
    Buttons.
    3. Two calculation fields. In the first one, set red, your calc is
    if(select="red",Name,""). In the second one, set blue, your calc is
    if(select="blue",Name,"")
    4. In layout mode, set the text colour of set red as red, and the text
    colour of set blue as blue. Then, carefully lay set red on top of set blue
    so that they are stacked.

    Voila! When you click the radio button and set it to "red" the calculation
    in set red will put your target text in the field formatted with red text,
    and when you set the radio button to blue, the set blue calc will do the
    same.

    Hope this helps!


    "mal anderson" <malawayfromhome@hotmail.com> wrote in message
    news:9bcd6b26.0310270638.314f4ec2@posting.google.c om...
    > can anyone help with script so that i can press a radio button and
    > change the selected text format (i.e. bold red)
    > thanks in advance
    > weather in Isle of Axholme, England, sunny 13 degrees c, sun shining
    > on lovely flame red autumn leaves.
    >
    > best regards
    > mal
    >
    > [email]malawayfromhome@hotmail.com[/email]

    Mimi Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139