conditional formating

M

Mike L

Anyone know if there a way to conditional format a field based on selections
from an options field within a repeating table?

I have a mutiple select list box created from options, repeating table and
scrolling region and I want to make a field read-only based on the selection
from this list.

Cheers
 
S

S.Y.M. Wong-A-Ton

You could use helper fields in the Main DOM or xdExtensions to set
conditional formatting on fields outside of the repeating table of your
multiple select list box, but the quickest and easiest way to set conditional
formatting is through an XPath expression in the Conditional Formatting
dialog box.

Try this:
1. Open the Conditional Format dialog box on the field you would like to
make read-only.
2. Select "Select a field or group…" in the first dropdown list and set it
to the node representing the option in your multiple select list box (in my
case this would be "selected" under the "option" group; see later in step 6)
3. Leave the default setting of the second dropdown unmodified
4. Select "TRUE" in the third dropdown list
5. Select "The expression" in the first dropdown list
6. Modify the XPath expression as follows:

If you want the field to be read-only when the second option in your
multiple select list box is selected, add a "[2]" behind the option group.
For example…

Expression before change: my:eek:ptions/my:eek:ption/my:selected = string(true())
Expression after change: my:eek:ptions/my:eek:ption[2]/my:selected = string(true())

Note: You can add more conditions if your scenario requires it by clicking
on the [Add >>] button and selecting "and" or "or" from the list.

7. Select "Read-only" under "Then apply this formatting:"
8. Exit out by clicking on [OK] on all dialog boxes.

Hope this helps.


Regards,
S.Y.M. Wong-A-Ton
 
M

Mike L

This is exactly what i was looking for. I didn't know you can reference them
like an array element. Thank you.

S.Y.M. Wong-A-Ton said:
You could use helper fields in the Main DOM or xdExtensions to set
conditional formatting on fields outside of the repeating table of your
multiple select list box, but the quickest and easiest way to set conditional
formatting is through an XPath expression in the Conditional Formatting
dialog box.

Try this:
1. Open the Conditional Format dialog box on the field you would like to
make read-only.
2. Select "Select a field or group…" in the first dropdown list and set it
to the node representing the option in your multiple select list box (in my
case this would be "selected" under the "option" group; see later in step 6)
3. Leave the default setting of the second dropdown unmodified
4. Select "TRUE" in the third dropdown list
5. Select "The expression" in the first dropdown list
6. Modify the XPath expression as follows:

If you want the field to be read-only when the second option in your
multiple select list box is selected, add a "[2]" behind the option group.
For example…

Expression before change: my:eek:ptions/my:eek:ption/my:selected = string(true())
Expression after change: my:eek:ptions/my:eek:ption[2]/my:selected = string(true())

Note: You can add more conditions if your scenario requires it by clicking
on the [Add >>] button and selecting "and" or "or" from the list.

7. Select "Read-only" under "Then apply this formatting:"
8. Exit out by clicking on [OK] on all dialog boxes.

Hope this helps.


Regards,
S.Y.M. Wong-A-Ton


Mike L said:
Anyone know if there a way to conditional format a field based on selections
from an options field within a repeating table?

I have a mutiple select list box created from options, repeating table and
scrolling region and I want to make a field read-only based on the selection
from this list.

Cheers
 
S

S.Y.M. Wong-A-Ton

You're welcome!

Mike L said:
This is exactly what i was looking for. I didn't know you can reference them
like an array element. Thank you.

S.Y.M. Wong-A-Ton said:
You could use helper fields in the Main DOM or xdExtensions to set
conditional formatting on fields outside of the repeating table of your
multiple select list box, but the quickest and easiest way to set conditional
formatting is through an XPath expression in the Conditional Formatting
dialog box.

Try this:
1. Open the Conditional Format dialog box on the field you would like to
make read-only.
2. Select "Select a field or group…" in the first dropdown list and set it
to the node representing the option in your multiple select list box (in my
case this would be "selected" under the "option" group; see later in step 6)
3. Leave the default setting of the second dropdown unmodified
4. Select "TRUE" in the third dropdown list
5. Select "The expression" in the first dropdown list
6. Modify the XPath expression as follows:

If you want the field to be read-only when the second option in your
multiple select list box is selected, add a "[2]" behind the option group.
For example…

Expression before change: my:eek:ptions/my:eek:ption/my:selected = string(true())
Expression after change: my:eek:ptions/my:eek:ption[2]/my:selected = string(true())

Note: You can add more conditions if your scenario requires it by clicking
on the [Add >>] button and selecting "and" or "or" from the list.

7. Select "Read-only" under "Then apply this formatting:"
8. Exit out by clicking on [OK] on all dialog boxes.

Hope this helps.


Regards,
S.Y.M. Wong-A-Ton


Mike L said:
Anyone know if there a way to conditional format a field based on selections
from an options field within a repeating table?

I have a mutiple select list box created from options, repeating table and
scrolling region and I want to make a field read-only based on the selection
from this list.

Cheers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top