4 Replies Latest reply on Feb 23, 2016 3:38 AM by Fabian Schmidt

    Setting a drop down value to null

    Apprentice

      Does anyone know if there is anything different that needs to be done in order to set a drop down box for a reference list to null? The code we are using is included below:

       

      import System

      static def GetAttributeValue(Request):

           Value = null

           return Value

       

       

      The above seems to work on setting regular text fields to null but we haven't been able to get this to work on drop down fields. In our scenario we have a reference list / drop down field that we show or hide based on the value of another field. We noticed when we hide the field it is still populated with an old value so we would like to set it to null before hiding it. To facilitate this we:

      1. Created a new window with just the fields we want to set to null on it
      2. Created an automated action instance to set the fields to null

       

      Again the above works for regular text fields but not for the reference list / drop down field.

       

      Any suggestions are greatly appreciated.