How to retrieve value of hidden field in twig? How to retrieve value of hidden field in twig?

PFB screenshot:


I am able to retrieve value of "Partition Count" field when not disabled. But not able to retrieve it's value when disabled.

Exact requirement:
1) If "Partition Count" field is Disabled from Drupal Admin, then field should not be displayed. But this value needs to be retrieved in twig file as display of "Reference Paragraph" will vary according to the value of "Partition Count".

2) If "Partition Count" field is Enabled from Drupal Admin, then field should be displayed. In this case, I am able to retrieve "Partition Count" field value in twig file.



paragraph.html.twig:: https://github.com/WondrousLLC/paragraphs_starter_pack/blob/master/template/paragraph/paragraph.html.twig
The variables in a paragraph template contain the fully loaded paragraph entity:

paragraph.html.twig

{#
/**
 * @file
 * Default theme implementation to display a paragraph.
 *
 * Available variables:
 * - paragraph: Full paragraph entity.


from which you can retrieve raw values of any field, not matter whether base field or configured field or displayed or not:

{% set value = paragraph.field_example.value %}


On the contrary {{ content }}

 * - content: All paragraph items. Use {{ content }} to print them all,
 *   or print a subset such as {{ content.field_example }}. Use
 *   {{ content|without('field_example') }} to temporarily suppress the printing
 *   of a given child element.


contains only the fields configured to be displayed in "Manage Display".