customize a dynamic custom filed
Posted: 09 Oct 2018, 12:07
Hello,
First, thank you for your help.
I want to do this function
I have 2 custom field :
1 - "Country" with values "France, USA, England"
2 - "Town" which will have dynamically values
I want to do somehting when I select
- "France" you will have in the 2nd custom field list towns "Paris, Nantes, Lille" etc
- "USA" : "new york, washington, chicago" etc
- "England" : "London, Liverpool, manchester" etc
I know that I need to create a override function in custom_function_api.ph
and in this function I should propably use this 2 functions :
$p_field_id=custom_field_get_id_from_name('Country'); //get the id of custom field
$p_field_value=custom_field_get_value( $p_field_id, $t_issue_id ); // get the value selected
The problem is that I can't know the id of issue because the issues still not created. So the function custom_field_get_value dosen't work correctly.
Anyone have an idea ?
Thank you for you help
First, thank you for your help.
I want to do this function
I have 2 custom field :
1 - "Country" with values "France, USA, England"
2 - "Town" which will have dynamically values
I want to do somehting when I select
- "France" you will have in the 2nd custom field list towns "Paris, Nantes, Lille" etc
- "USA" : "new york, washington, chicago" etc
- "England" : "London, Liverpool, manchester" etc
I know that I need to create a override function in custom_function_api.ph
and in this function I should propably use this 2 functions :
$p_field_id=custom_field_get_id_from_name('Country'); //get the id of custom field
$p_field_value=custom_field_get_value( $p_field_id, $t_issue_id ); // get the value selected
The problem is that I can't know the id of issue because the issues still not created. So the function custom_field_get_value dosen't work correctly.
Anyone have an idea ?
Thank you for you help