Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.

Moderators: ArturoRobles, ArturoRobles

Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
Hello All,

I am using a dynaform with a Multiple File Uploader control in the "parent" Display Mode.
I would like to allow the users to add new files but prevent them from deleting files added in the previous steps.
Is it possible to disable a Delete button (an icon with a recycle bin) related to this control?
Please help.

To achieve the requirement, you can do the following:
1. Create a Dynaform for the first step which has the Multiple File Upload web control and let it work as it does.
2. Create another Dynaform which will include the Multiple File Uploader(same ID as the first Dynaforms's MFU) from the first Dynaform.
3. Include the following javascript in the second Dynaform:
Code: Select all
This will remove the delete button in the second Dynaform for the files that have uploaded in the first step but retain the delete button for the files that will be uploaded in the current step.
You can refer the attached image for the output.
MFU-delete.png (18.41 KiB) Viewed 2330 times
Hope this helps

Best Regards

I have a suggest where user have to select some do[…]

The 500 Internal Server Error is the general catch[…]

Really very nice blog information for this one and[…]

This is a long, lengthy and cumbersome process. T[…]