Expand my Community achievements bar.

SOLVED

Highlight fields

Avatar

Level 2

Hi

I am using below code (from assure dynamics) to highlight field. This code highlights only one page of the form. I am trying to apply this code for my entire form that has 5 pages. One way may be to place this code in every page. I am trying to avoid it but can't getting there.

// turn highlight on/off depending on what the user clicks

if (this.rawValue == 1)

{

    // turn on the highlight colour

    app.runtimeHighlight = true;

    app.runtimeHighlightColor=["RGB",.8,.84,1];

}

else

{

    app.runtimeHighlight = false;

}

// avoids save dialog on closing form, would not normally use

// this in a production form

     event.target.dirty = false;

thanks

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

It seems to work if you save the form as a static PDF form ... is that an option?

This is probably a glitch in using an Acrobat API with a dynamic PDF form.

This is also updating a user setting, which might not be a good idea if they have set it because of their particular color contrast preferences.

1526349_pastedImage_0.png

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Hi,

It seems to work if you save the form as a static PDF form ... is that an option?

This is probably a glitch in using an Acrobat API with a dynamic PDF form.

This is also updating a user setting, which might not be a good idea if they have set it because of their particular color contrast preferences.

1526349_pastedImage_0.png