Dependency not working in record view

We implimented Dependency for field Visibility, At record creation Visibility formula working fine but when we view the record these field are visible in record view.

We use this formula for all fileds in Department info and time info tab .

Formula we are using:

In create view fields are hidden that's working according our requirements:

Record view:

Please provide any solution for this.

Parents
  • Hi Sandeep,

    According to your formula in the logic, the fields will be visible only when two conditions are met.

    1. When $select_template_c field is empty and $relative_template_c is "No".

    But as mentioned in the above screenshot, $select_template is not empty and it is having some value in it.

    Can you please check the below things to debug this issue a little more and fix it.

    1. Can you please paste the entire code you have used in the dependency file and paste it, so we can check in a detailed way.

    2. Which version and edition of Sugar you are using? If you are using the latest versions, you can hide and show the fields conditionally through Studio itself. Do you even no need of writing the code in Dependencies also?

    3. Are you sure you are referring to the same fields you have used in the Sugar logic in the Sugar UI also? 

    4. When you are talking about record view, it applies to the existing records. Are you sure for all the existing records even though the condition is satisfied the fields are visible? One more thing to check here, After implementing this logic have you recalculated the records? If not you have to do this because for the existing records you have to edit and save (or you can do recalculate through the list view actions menu) the record to trigger this logic and to make it work.

    Hope this information helps to debug the issue.

    Thanks and Best Regards,

    PK

    www.bhea.com

  • We are using SugarCRM Version 11.2.0.

    Yes it's working fine in creating time issue is when we open record after record creation all field are visible. thats the why are fields are visible.

  • Hi Sandeep,

    Can you remove this code in the dependency file and try the other way. From the recent versions of Sugar, you can conditionally hide and show the fields based on condition also using Sugar Logic. Can you please put the same formula in Sugar Logic and check how it is working.

    To do this, you just need to go to the target field in the studio and enable the dependent checkbox option. Then Visible if formula box will be enabled. Please put the same formula in-studio and save it.

    After doing this just reload the page for testing new records and for existing records you have to recalculate the records and test whether it is working fine or not.

    Let me know if it helps.

    Thanks and Best Regards,

    PK,

    www.bhea.com

Reply
  • Hi Sandeep,

    Can you remove this code in the dependency file and try the other way. From the recent versions of Sugar, you can conditionally hide and show the fields based on condition also using Sugar Logic. Can you please put the same formula in Sugar Logic and check how it is working.

    To do this, you just need to go to the target field in the studio and enable the dependent checkbox option. Then Visible if formula box will be enabled. Please put the same formula in-studio and save it.

    After doing this just reload the page for testing new records and for existing records you have to recalculate the records and test whether it is working fine or not.

    Let me know if it helps.

    Thanks and Best Regards,

    PK,

    www.bhea.com

Children
No Data