Thanks a lot.
Can you tell me one thing.
Is there any way to enable/disable or hide/unhide attach file button.
Actually I though that hiding save will solve my purpose but I was wrong.
I want that once the task is saved nobody can delete any attachment from it.
I need to disable submit on a condition, say payment option (select datatype) is pending,
i tried frm.disable_save();
frm.disable_save() disables saving and hides the save/submit button which is good.
I need to enable the button again when payment option is paid,
i tried frm.enable_save()
frm.enable_save() just enables save, button is not shown
Why am i not seeing the save/submit button ? tried frm.refresh also.
Can anyone please tell me how to toggle save and submit .