Git Product home page Git Product logo

Comments (13)

onozaty avatar onozaty commented on June 12, 2024

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.

yingsheng658 avatar yingsheng658 commented on June 12, 2024

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,
image
What does "5" stand for?The parentFieldID?

from redmine-view-customize.

onozaty avatar onozaty commented on June 12, 2024

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.

yingsheng658 avatar yingsheng658 commented on June 12, 2024

Hi onozaty,

The name of parentFieldID is cf_1 and the name of childFieldID is cf_2.

from redmine-view-customize.

onozaty avatar onozaty commented on June 12, 2024

Please try the following.

  var parentFieldId = 'issue_custom_field_values_5';
  var childFieldId = 'issue_custom_field_values_6';

from redmine-view-customize.

yingsheng658 avatar yingsheng658 commented on June 12, 2024

Hi onozaty,

Before submit this issue,I have tried to modify the script as you mentioned but still cannot work.

from redmine-view-customize.

onozaty avatar onozaty commented on June 12, 2024

Hi @yingsheng658

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.

yingsheng658 avatar yingsheng658 commented on June 12, 2024

Hi onozaty,

Do you mean that the HTML as below screen shot?
image
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.

yingsheng658 avatar yingsheng658 commented on June 12, 2024

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.

yingsheng658 avatar yingsheng658 commented on June 12, 2024

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.

onozaty avatar onozaty commented on June 12, 2024

Hi @yingsheng658

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.

yingsheng658 avatar yingsheng658 commented on June 12, 2024

Hi onozaty,

It's fine,thanks for your kindly support.

from redmine-view-customize.

onozaty avatar onozaty commented on June 12, 2024

I am happy to help you.

from redmine-view-customize.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.