show when while using decision for a drop down field

a!dropdownField(
label: "Type Of Loan",
labelPosition: "ABOVE",
choiceLabels: cons!LM_LoanTypes,
choiceValues: cons!LM_LoanTypes,
value: ri!LM_CustomerDetails.loanid.typeOfLoan,
saveInto: ri!LM_CustomerDetails.loanid.typeOfLoan,
searchDisplay: "AUTO",
required: true

a!floatingPointField(
label: "Interest Rate",
labelPosition: "ABOVE",
value: if(
ri!LM_CustomerDetails.loanid.typeOfLoan,rule!LM_LoanRates(LoanType: ri!LM_CustomerDetails.loanid.typeOfLoan )," " ),
saveInto: ri!LM_CustomerDetails.loanid.interestRate,
refreshAfter: "UNFOCUS",
readOnly: TRUE,

i want to display interest rate through the type of loan with decision i have created.but it is not displaying

  Discussion posts and replies are publicly visible

Parents
  •  use this code as reference   

    a!localVariables(
      local!loanType,
      local!interestRate,
    {
    a!dropdownField(
      label: "Type Of Loan",
      labelPosition: "ABOVE",
      placeholder: "Select A Loan Type",
      choiceLabels: cons!TEST_LOANTYPES,
      choiceValues:cons!TEST_LOANTYPES,
      value: local!loanType,
      saveInto:{
        local!loanType,
        a!save(local!interestRate,rule!TEST_LoanRates(LoanType:local!loanType))
        
        },
      searchDisplay: "AUTO",
      required: true
      ),
    
      a!textField(
        label: "Interest Rate",
        labelPosition: "ABOVE",
        value:local!interestRate&"%",
          saveInto: local!interestRate,
          refreshAfter: "UNFOCUS",
          readOnly:true()
          )
          }
          )

Reply
  •  use this code as reference   

    a!localVariables(
      local!loanType,
      local!interestRate,
    {
    a!dropdownField(
      label: "Type Of Loan",
      labelPosition: "ABOVE",
      placeholder: "Select A Loan Type",
      choiceLabels: cons!TEST_LOANTYPES,
      choiceValues:cons!TEST_LOANTYPES,
      value: local!loanType,
      saveInto:{
        local!loanType,
        a!save(local!interestRate,rule!TEST_LoanRates(LoanType:local!loanType))
        
        },
      searchDisplay: "AUTO",
      required: true
      ),
    
      a!textField(
        label: "Interest Rate",
        labelPosition: "ABOVE",
        value:local!interestRate&"%",
          saveInto: local!interestRate,
          refreshAfter: "UNFOCUS",
          readOnly:true()
          )
          }
          )

Children