I am trying to have two fields show only if it's true in a Task within a Request Offering. The field names are "chkPowerSupply" and "qtyPowerSupply". These fields are tied together so if someone checks the box to order a power supply the quantity will multiply the cost. I only want these to show up in the Task if they are true. So if the keyboardMouse field is true then put in a title of Keyboard/Mouse: then the word "true" then the title Quantity followed by the actual quantity.
This is what I was given to use but it's not working. It sends back a <null> in the task. I have tried putting in "true" instead of 1. I tried just putting the first part so it would just show the title "Keyboard/Mouse) but the same thing happens.
$(if chkKeyboardMouse = 1 then 'Keyboard/Mouse: ' + chkKeyboardMouse + ', Quantity: '+ qtyKeyboardMouse else '')
Works fine if I don't try to hide