Hi You only use the code if that has been specified in the option set (tick-box).
Secondly, you are using OR and NOT in your expression: #{aDiagnose} != 'Meningitis - Other Bacterial' || #{aDiagnose} != 'Meningitis - Hemophillus Influenza' || #{aDiagnose} != 'Meningitis - Meningococcal Meningitis' Basically that means the expression will always return true, at least if aDiagnose is a single value diagnosis field. Even if you select let us say "Meningitis - Mengingococcal Meningitis" as the aDiagnosis value, the three other components in the expression will be true so the total is true due to the OR.... Try using AND #{aDiagnose} != 'Meningitis - Other Bacterial' && #{aDiagnose} != 'Meningitis - Hemophillus Influenza' && #{aDiagnose} != 'Meningitis - Meningococcal Meningitis' Meaning : when aDiagnosis is NOT diag1 AND not diag2 AND NOT diag3 then hide stage X Regards Calle Regards Calle On Mon, 8 Oct 2018 at 09:11, Amjad Ata-Allah <ataallah.am...@gmail.com> wrote: > Dear Zubair, > > Yes it is, and i tried both (name and code). > > Regards, > > Sent from my iPhone > > On Oct 8, 2018, at 9:47 AM, Zubair Asghar Raja <zub...@dhis2.org> wrote: > > Hi Amjad > Is aDiagnose an option set? If it is then try using code instead of name. > > > Zubair > > Den man. 8. okt. 2018, 6:50 a.m. skrev Amjad Ata Allah < > ataallah.am...@gmail.com>: > >> Hi Stephen >> Here is the condition expression: >> #{aDiagnose} != 'Meningitis - Other Bacterial' || #{aDiagnose} != >> 'Meningitis - Hemophillus Influenza' || #{aDiagnose} != 'Meningitis - >> Meningococcal Meningitis' >> >> Thanks, >> >> On Mon, Oct 8, 2018 at 12:41 AM Stephen Ocaya <soc...@hispuganda.org> >> wrote: >> >>> Hello Amjad M. Ata-Allah , Kindly share the condition expression for >>> the program rule. >>> >>> regards >>> >>> On Sun, Oct 7, 2018 at 10:15 PM Amjad Ata Allah < >>> ataallah.am...@gmail.com> wrote: >>> >>>> Dear All, >>>> >>>> I am working on DHIS2 2.30 project. >>>> I am trying to hide/show program stage depending on a user selection. I >>>> succeed to hide the program stage, but its not showing back. >>>> >>>> Also there is no errors in the console. >>>> >>>> Regards, >>>> >>>> -- >>>> Save a tree, Please don't print this email unless you really need to. >>>> >>>> Amjad M. Ata-Allah >>>> _____________________________ >>>> M: +970.599.721.158 >>>> Em: ataallah.am...@gmail.com >>>> Em: amjad.ataal...@hotmail.com >>>> Skype: amjad.ataallah >>>> _____________________________ >>>> _______________________________________________ >>>> Mailing list: https://launchpad.net/~dhis2-devs >>>> Post to : dhis2-devs@lists.launchpad.net >>>> Unsubscribe : https://launchpad.net/~dhis2-devs >>>> More help : https://help.launchpad.net/ListHelp >>>> >>> >>> >>> Strategic Information Systems for Actions >>> Plot 36 Impala Avenue, Kololo >>> P.O. Box 4750, Kampala >>> >> >> >> -- >> Save a tree, Please don't print this email unless you really need to. >> >> Amjad M. Ata-Allah >> _____________________________ >> M: +970.599.721.158 >> Em: ataallah.am...@gmail.com >> Em: amjad.ataal...@hotmail.com >> Skype: amjad.ataallah >> _____________________________ >> _______________________________________________ >> Mailing list: https://launchpad.net/~dhis2-devs >> Post to : dhis2-devs@lists.launchpad.net >> Unsubscribe : https://launchpad.net/~dhis2-devs >> More help : https://help.launchpad.net/ListHelp >> > _______________________________________________ > Mailing list: https://launchpad.net/~dhis2-devs > Post to : dhis2-devs@lists.launchpad.net > Unsubscribe : https://launchpad.net/~dhis2-devs > More help : https://help.launchpad.net/ListHelp > -- ******************************************* Calle Hedberg 46D Alma Road, 7700 Rosebank, SOUTH AFRICA Tel/fax (home): +27-21-685-6472 Cell: +27-82-853-5352 Iridium SatPhone: +8816-315-19119 Email: calle.hedb...@gmail.com Skype: calle_hedberg *******************************************
_______________________________________________ Mailing list: https://launchpad.net/~dhis2-devs Post to : dhis2-devs@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp