I am developing an activity module. In the mod_form it has some text fields and a file manager.
If the user is creating an instance of the activity, I want the file manager to be visible so they can select a file. But if they are updating an already created instance I want it to be hidden/disabled and use the previously selected file.
So is it possible to determine if they are updating the instance from mod_form.php? And how would I disable the file manager element and use the previously selected file?
Thanks