Change text color of a value depending on an other fields value





Hi, I like to create an pdf form with acrobat. for this i have a table with different fields. depending on the value entered in p.e field "A" the text of field "A". "textA" an "textB" should colored red, etc. (like in the table below)



| **Headline 1** | **Headline 2** | **Headline 3** |
|  |  |  |
| A | textA | textB |
| 1 | text1 | text2 |
| I | textI | textII |

I have been using the forums to help me answer the question above and I have managed to create the code below, but it's not working


```
if (event.value=="a") { event.target.textColor = color.red;

      this.getField("textA").textColor = red;

      this.getField("textB").textColor = red; }

else if (event.value=="b") { event.target.textColor = color.red; {

      this.getField("textA").textColor = red;

      this.getField("textB").textColor = red; }

else if (event.value>="0") { event.target.textColor = color.blue; {

      this.getField("textA").textColor = blue;  

      this.getField("textB").textColor = blue; }

else if (event.value=="I") { event.target.textColor = color.green; {

    this.getField("textA").textColor = green;

    this.getField("textB").textColor = green; }

else if (event.value=="II") { event.target.textColor = color.green; {

    this.getField("textA").textColor = green;

    this.getField("textB").textColor = green; }

else event.target.textColor = color.black;


```
Can anyone suggest what I might be doing wrong?
You use too many {
hello, thank you for the screenshot.

you can change that color in dashboard → appearance → customize → colors section, header text option.

please feel free to ask any other questions that you might have.

kind regards, roman. You need to style the <a> tag font color. By default, linked text is blue and underlined. use the query string to pass the venue id to the generic venue display page, make your <a> tags ref that page with "?id=xxx" at the end, from the venue page fetch that xxx value and query your db for that specific venue, and display that venue's fields as you like.


$myvar = $\_GET['id']; and thus  

Select * FROM table WHERE field='$myvar' Yes  

You would need to run the ‘LABEL ON’ SQL Statement.  

Here is a sample of code that changed the column heading for field JOBID from ‘Job ID’ to ‘NEW COLUMN HEADING’  

File is CD053DB In library Charlieb


LABEL ON COLUMN CHARLIEB/CD053DB (JOBID IS ‘NEW COLUMN HEADING’) You will probably need to write a VBA macro that does this. Formatting is not pushed down from the workbook that the user opened to the workbook that holds the source data. for example, you can disable right click on images at your page:

```

$(document).ready(function() {
    $("img").on("contextmenu",function(){
       return false;
    }); 
}); 

``` May be the function is executed before the document is ready.
Try to use document.ready function like this:



```
$( document ).ready(function() {
    $('#machines').change(function() {
        var $selected = $(this).find(':selected');
        $('#description').html($selected.data('description'));
    }).trigger('change');
});

``` if you’re talking about easel…

select the text that you want to change

go to the cut shape tab

click on the shape tab and look at the bottom of the tab and you will see the font name that you have selected

you can pick the font you want.

hope that’s what you were talking about

good luck

russe… hi [@omar\_jandal](/u/omar_jandal) i found the problem!

somewhere on your site is a interaction fireing on your “article v3” class. [[image]](https://aws1.discourse-cdn.com/business5/uploads/webflow1/original/3x/e/f/ef1234ea647732bbbe8dcba17f1f3301d12dd79e.png "image") [[image]](https://aws1.discourse-cdn.com/business5/uploads/webflow1/original/3x/f/8/f8a0c96ba03678a653e0aa1af8c13d0e631a6558.png "image")

i don´t know where the interaction is set, but if you mind it i would simply change the color in the interaction from purple to green. or just delete it. i have also s… can you try with other dropdowns? if its working , nothing wrong with your code and something to do with that specific drop down.