onozaty / redmine-view-customize-scripts

Code examples for "Redmine View Customize Plugin"
https://github.com/onozaty/redmine-view-customize
111 stars 26 forks source link

View customize script to restrict form submission when status changed. #124

Closed SHNev closed 1 year ago

SHNev commented 1 year ago

Hello onozaty, Thanks for your Support.

While filling a issue form, in Status drop down I have two values (1. in progress, 2. Completed). When I am updating an issue form status to "Completed" from "In progress", form should make Attachment compalsary to attach file related issue. And if user forgot to attach any file, then while submitting form, popup or error msg must be there saying "please attach the file" If status is "in progress" then form must get submitted without any error.

SHNev commented 1 year ago

I tried today regarding this issue. But I didn't get any positive results. Please Can you help me with a possible javascript.

onozaty commented 1 year ago

Hi @SHNev

I have written a sample code. Please refer to the following.

Thanks.

SHNev commented 1 year ago

You are great, This will fulfill my requirement. Thanks Onozaty 😊