Thanks very much Trevor for your response!
May be my question is silly but just wanted to be more clear.
We have created a custom uploader inside which we are using Kentico's Direct Uploader itself (~\CMSModules\Content\Controls\Attachments\DocumentAttachments\DirectUploader.ascx) and the extra thing which we included in this is a preview option of the file.
After this, we have a document type called "File Attachment" in which one of the field is "File" to which the above mentioned custom form control is assigned.
Now we've recently added a radio button list in the document type itself from Kentico UI which has three options:
-
Sidebar
-
Embed
-
Inline
Now, on the basis of selected file extension (before saving it to DB), we need to show/hide "Embed" option where I'm stuck. As per my understanding from various posts, we can assign the source to radio button list with some conditions as well using macro but before that I need to get the file extension.
And to do same with javascript, I'm confused to how get the new file upload event and the update file event (inside a grid in direct uploader) where I need to fetch the file extension and show/hide the "Embed" option in radio button list.
Waiting for your help now!
Thanks,
Binod Paikaray