I hide or show a field with the following code:
Show element:
style.set(dojo.byId('fTypeId'), 'display', 'block');
Hide element:
style.set(dojo.byId('fTypeId'), 'display', 'none');
How can I test if this element is showing?
Try :
require(["dojo/dom-style"], function(domStyle){
var isVisible = (domStyle.get("yourNodeId", "display") !== "none");
});