Jump to content

Urgent! Need help with a rule!


Recommended Posts

Sorry, new to the blog so please bear with me.

I have a switch rule set up, depending on the field protocol a logo is pulled and then there are choices P1 - P17 in additional fields that pull graphics.


What I need to happen is the first field that is blank (ie, P1, P2 and P3 could be filled with a graphic then P4 blank I need it to return Closing letter18.pdf, but if it is protocol 502 I need that last graphic to be Closing letter18CIP.pdf


switch (parseFloat("0" + Field("P2")))


case 1:

return Resource("Heart disease1.pdf");

case 2:

return Resource("Heart failure2.pdf");

case 3:

return Resource("Breathing3.pdf");

case 16:

return Resource("Memory loss16.pdf");

case 17:

return Resource("17_Confidence in Filling Out Med Forms.pdf");

case 18:

return Resource("Closing letter18.pdf");

case 201:

return Resource("UHC_CP");

case 502:

return Resource("CIP_logo_K.pdf");


return Resource("Closing letter18.pdf");


(I have cut some out as it is very long)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...