[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

JavaScript: If statements- HELP

Posted on 2006-10-27
2
Medium Priority
?
247 Views
Last Modified: 2010-04-16
Hello everyone,

We are running Adobe Workflow for our Client Intake process.

Process goes as such:

1. Process is initiated
2. Goes to Conflicts Group
3. Then it goes to 2nd Conflict Clerk

I'm trying to create an email trigger to go out to to the Conflicts Group, only if the 2nd Conflict Clerk rejects their form. I've been unsucessful thus far.

Here's my code:

var someInstructions = "";

if (WorkItem.previousWorkItem.name == "2nd Conflict Clerk")
{
      someInstructions = WorkItem.getFieldValue("clname1") + "- Conflict Process Rejected for " + WorkItem.getFieldValue("rpmbillatyname") + " Please Re-submit";
}
else

WorkItem.instructions = someInstructions;
0
Comment
Question by:rlucaj
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
Anubhavxgoel earned 200 total points
ID: 17832109
ok,

The issue could very well be in the concatination that you are trying to perform.
All languages suggest that we validate the text before appending.

If WorkItem.getFieldValue("clname1")  is null or "undefined" as javascript choses to call it :) , or even WorkItem.getFieldValue("rpmbillatyname")  has same issue, then you could be in trouble, so please get these values seperately and verify them before concatenating.
Let me know if this helps, else I would need details of how you found out that "WorkItem.instructions=..." did not work ?

cheers!
0
 

Author Comment

by:rlucaj
ID: 17850277
Thanks for the help, I got it to work.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Progress

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question