Comments (13)
Hi @yingsheng658 ,
The custom field may be incorrect.
Please check your project custom field id.
Please display the HTML source code and search with "issue_custom_field".
from redmine-view-customize.
Hi Onozaty,
I just view the HTML source code but cannot fine the keywords "issue_custom_field".Still need your help.
BTW,the screent shot of HJTML as below,
What does "5" stand for?The parentFieldID?
from redmine-view-customize.
Hi @yingsheng658 ,
What is the name of the parent field?
Looking at the image, "cf_1" is 5 and "cf_1" is 6.
from redmine-view-customize.
Hi onozaty,
The name of parentFieldID is cf_1 and the name of childFieldID is cf_2.
from redmine-view-customize.
Please try the following.
var parentFieldId = 'issue_custom_field_values_5';
var childFieldId = 'issue_custom_field_values_6';
from redmine-view-customize.
Hi onozaty,
Before submit this issue,I have tried to modify the script as you mentioned but still cannot work.
from redmine-view-customize.
Please look at the HTML of the ticket creation screen.
Is there an "issue_custom_field_values_5" and "issue_custom_field_values_6"?
from redmine-view-customize.
Hi onozaty,
Do you mean that the HTML as below screen shot?
If it does,I cannot find "issue_custom_field_values_5" and "issue_custom_field_values_6" from the HTML source code.
from redmine-view-customize.
Hi onozaty,
It's embarrassing that for my mistake,I just set parameter as "parentFieldID",and it's fine when I change the parameter to "parentFieldId".Thanks for your kindly support.
from redmine-view-customize.
Hi onozaty,
I got another question,if item B be selected from cf_1,and then only B-1 and B-2 can be selected,it's fine.
But before apply,I choose item A from cf_1 once again,how do I modify the script to clear the value of cf_2 if not clear the value of cf_1 before apply.Thanks in advanced.
from redmine-view-customize.
You can clear it by adding the following code.
var parentSelected = $('#' + parentFieldId + ' > option:selected');
$('#' + childFieldId).val(''); // <-Add code
Could you please give it a try.
from redmine-view-customize.
Hi onozaty,
It's fine,thanks for your kindly support.
from redmine-view-customize.
I am happy to help you.
from redmine-view-customize.
Related Issues (20)
- Unable to install the plugin HOT 3
- ViewCustomize User Roles on project HOT 1
- NoMethodError: undefined method `represent_boolean_as_integer=' for nil:NilClass encountered with Redmine 4.1.0-9 HOT 2
- Customized Key/value list Value HOT 3
- Add user mails to ViewCustomize context HOT 3
- Version incorrect in init.rb HOT 1
- unable install the plugins for view customize in ubuntu HOT 7
- Add total estimated hours and total spent hours for the issue to ViewCustomize.context.
- Error when install plugin! HOT 51
- context leaks data user has no access to HOT 3
- Trouble in installation HOT 2
- Not working at Redmine 4.1.1 (Bitnami) with undeinfed method before_filter error HOT 4
- Thx, this is great! HOT 4
- Strange characters in the path pattern and comments. HOT 2
- User and password HOT 5
- Allow to specify who can view customization by user name and role HOT 5
- LoadError during startup with Redmine trunk r21288 HOT 2
- Add ViewCustomize.context.project.id HOT 1
- Question regards View Customize and Custom Table Plugins HOT 2
- Add the issue's author and last updated by to ViewCustomize.context
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redmine-view-customize.