Hi All,
I am trying to change the caption of some drop down field based on some condition. The following condition is written on some other dropdown feild:
if (this.rawValue == "Ad Hoc Payments")
{
xfa.resolveNode("form.PaymentDetails.ddlInvoiceFrequency.caption.#text").rawValue = "TEST CAPTION";
}
But, it seems to be not working.
Any help would be highly appreciated.
Thanks,
Solved! Go to Solution.
Views
Replies
Total Likes
Try with this:
delete the caption in the object field palette and type this in the change event:
if( xfa.event.newText == "Ad Hoc Payments") this.caption.value.text.value = "TEST CAPTION";
Views
Replies
Total Likes
Try with this:
delete the caption in the object field palette and type this in the change event:
if( xfa.event.newText == "Ad Hoc Payments") this.caption.value.text.value = "TEST CAPTION";
Views
Replies
Total Likes
Or try this:
if (YourFieldName.rawValue == "Ad Hoc Payments")
{
xfa.resolveNode("YourTargetFieldName.caption.value.#text").value = "Alternate Caption:";
}else
{
xfa.resolveNode("YourTargetFieldName.caption.value.#text").value = "Caption:";
}
Helpful?
Kind regards Mandy
Thanks Zampazampa,
Your solution helped.
Thanks once again.
Views
Replies
Total Likes
Thanks nele_sonntag,
Your solution helped.
Thanks once again.
Views
Replies
Total Likes
Hi Vijay,
great. I'm glad that I could help you
I think it's god for the other user if you select "correct answer". Then the other users know that your problem is solved.
Kind regards Mandy
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies