MOZ
Well-known member
I am working on a addon that deals with attachments. I have a checkbox and to pass its checked state, this is what I am doing:
Using JS onClick, I change the data-value of a HiddeInput in the attachment_upload_button template.
The data-value of this HiddenInput is read by the XenForo_ControllerPublic_Attachment::actionDoUpload and then further action is taken.
The issue is that data-value is successfully changed (Check by sending alert onClick with value of data-value) however this change is not reflected in the actionDoUpload function (Checked by dumping the value read by the controller)
Using JS onClick, I change the data-value of a HiddeInput in the attachment_upload_button template.
The data-value of this HiddenInput is read by the XenForo_ControllerPublic_Attachment::actionDoUpload and then further action is taken.
The issue is that data-value is successfully changed (Check by sending alert onClick with value of data-value) however this change is not reflected in the actionDoUpload function (Checked by dumping the value read by the controller)