Hello,
I created a VFE action button Run Process to add a new Dx code. Is there a way to change the color of the button once it is clicked to indicate "done"? I thought maybe I could use visibility statements where one colored button appears when not clicked, and a different colored button would appear when clicked, but I'm not having any success with finding the correct statements relating to visibility for new Dx code. Has anyone done this or know of a better way? Thank you.
Visibility regions are the most elegant way to do this, but messy from an implementation standpoint. Suggest using the built in Enable/Disable Expression for the Action Button. This can be selected on the third tab of the Action button design, call Advanced. Select Use enable expression, then write code in the box to disable button once it is clicked.
Would you have an example of this code? I've tried many variations of IF MEL_ADD_PROBLEM == "ICD-V25.09" but none are working.
Try this is in the enable section jfitz is suggesting:
If you want the button to be disabled when that problem is added to the list:
MATCH(PROB_AFTER("delimited","dat", "probtype", "com"),1,"ICD-V25.09")>0
If you the the button to be enabled when that problem is added to the list:
MATCH(PROB_AFTER("delimited","dat", "probtype", "com"),1,"ICD-V25.09")==0
Brad
Another option is to create an invisible document variable and set the action button to add the dx but also set the document variable. Tie the visibility field to the hidden document variable.
I'll give these a try. Thank you.