Hide/Unhide a section break using custom script

Hi,
Is there any way that we can hide/unhide a section break using custom script?

Regards
Ruchin Sharma

try changing its property. I forgot the syntax, but you can console.log(cur_frm.doc.name_of_section) to see it’s properties.

Any exact syntax…?

You can use cur_frm.set_df_property("section break name", "hidden", 1);

Thank You @lokesh.