Hello. The following SC macro does not seem to work when I substitute my search block names. Here is the basic macro:
sc_block_display(Block_Name, on/off)
Dynamically determines the display fields of a specific block.
By default all the blocks are displayed (“on” condition).
Ex. 1:
if ({type_customeri} == “personal”)
{
sc_block_display(company, off);
}
else
{
sc_block_display(personal, off);
}
Here is my code which I’ve tried at both grid scriptinit and advanced search scriptinit. Emotions and Part 2 are the names of the blocks in my advanced search. I’ve also tried with just the Emotions block. The macro has no effect.
[glo_simple] = 1;
if ([glo_simple] == 1)
{
sc_block_display(Emotions, off);
sc_block_display(Part 2, off);
}
Has anyone had success with this macro?
Thank you!