I wish when none select the drop down field, during print it will be invisible.
What condition now:
1. I have placed in layout ready event:
this.rawValue = "select one"; // as default
2. Drop down events list set in objetc are "A", "B", "C".
In this case how can I make invisible during print?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
In the prePrint event try:
if (this.rawValue == "select one") {
this.presence = "invisible";
}
else {
this.presence = "visible";
}
Then in the postPrint event have a line to make the field visible again:
this.presence = "visible";
Hope that helps,
Niall
Views
Replies
Total Likes
Hi,
In the prePrint event try:
if (this.rawValue == "select one") {
this.presence = "invisible";
}
else {
this.presence = "visible";
}
Then in the postPrint event have a line to make the field visible again:
this.presence = "visible";
Hope that helps,
Niall
Views
Replies
Total Likes
Thanks for help.
one problem is that already if else cndition is placed in preprint event. So, how can I set up both condition (your given code and previous code) so that both will be executed.
Views
Replies
Total Likes
Hi,
If the one condition suits both scripting requirements, then you can simply include both in the one if/else statement:
if (this.rawValue == "select one") {
// do something with presence
// do something with colour
}
else {
// do something else with presence
// do something else with colour
}
If the conditions are not compatible, then you can have one if/else statement following the other:
if (this.rawValue == "select one") {
// do something with presence
}
else {
// do something else with presence
}
if (NumericField.rawValue == 1) {
// do something with colour
}
else {
// do something else with colour
}
Hope that helps,
Niall
Views
Replies
Total Likes
Views
Likes
Replies