Dependent FIeld

Hi,
I search for dependent field solution on suite crm.
I found this : http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.7/Architecture/Sugar_Logic/Dependency_Actions/SetVisibility/#Visibility_Dependencies_in_Field_Definitions

but it seems to be only sugarcrm pro solution, Is it possible to do in suite CRM,
My need is to hide or show field when some dorpdown values are selected

(sorry for my english…)

Thanks

No one can help me?

I try this js code put in /theme/SuiteP/js/style.js

$(document).ready(function(){
$(’#type_de_contrat_c’).on(‘change’, function() {
if ($("#type_de_contrat_c").val() == “véhicule” {
$("#LBL_SURFACE_HABITATION").hide();
$("#surface_habitation_c").closest(“td”).hide();
}else{
$("#LBL_SURFACE_HABITATION").show();
$("#surface_habitation_c").closest(“td”).show();
}
});
});

The style.js script is load in all page but not my code (see with navigator) :slight_smile:
unlucky…

any help is welcome :slight_smile:

Ok I found a solution.

$(document).ready(function(){
$(’#type_de_contrat_c’).on(‘change’, function() {
if ($("#type_de_contrat_c").val() == “1”){
$("#LBL_SURFACE_HABITATION").hide();
$("#surface_habitation_c").closest(“td”).hide();
}else{
$("#LBL_SURFACE_HABITATION").show();
$("#surface_habitation_c").closest(“td”).show();
}
});
});

some code error, now it’s working

Hi Phii,

I used your solution with my code in themes/SuiteP/js/style.js, but it dose not work, please help me


$(document).ready(function(){
$('#type_c').on('change', function() {
if ($("#type_c").val() == "Deposition"){
$("#LBL_DEPONENT").hide();
$("#deponent_c").closest("td").hide();
}else{
$("#LBL_DEPONENT").show();
$("#deponent_c").closest("td").show();
}
});
});