Thank you for your answer,
I tried everything you suggested, adding the “IDNoHideHelpField” in the form, logging in the values as follows (boolean “Hide” has the exact same conditions as in the “IDNoHideHelpCalc”:
const country = candidateProcessDocumentData.document.Candidate.Contract.CountryEmploy;
const nationalCitizen = candidateProcessDocumentData.document.Candidate.PersonalData.NationalCitizen;
const euCitizen = candidateProcessDocumentData.document.Candidate.PersonalData.EUCitizen;
console.log(`Country:${country}`);
console.log(`NationalCitizen:${nationalCitizen}`);
console.log(`EUCitizen:${euCitizen}`);
const hide =
["AUT", "FR", "GER"].includes(country) ||
(country === "VN" && nationalCitizen === false) ||
(country === "CZ" && (euCitizen !== true || nationalCitizen === true)) ||
(country === "PRT" && euCitizen === false);
console.log(`Hide:${hide}`);

I also tried to change the calc by using FieldNotFilled and FieldFilled but that didn’t change anything.
You noticed that at this step our form is readonly, later we can change the values, but I changed the code so that I could change it directly when we receive data from External <PROJECT_NAME>.
So when loaded, the state of the document is this one:
{
document: {
Candidate: {
PersonalData: {
Disable: false,
NationalCitizen: false,
EUCitizen: true,
DisableConsort: false,
NationalityCalc: 'Czech',
GenderCalc: 'male',
FirstName: 'CZ',
LastName: 'Test',
EmailPrivate: 'a@a.cz',
PhonePrivate: 'test',
Title: 'Mr',
Nationality: 'Vienameses',
BirthPlace: 'test',
Birthdate: new Date(497145600000),
AddressPermanent: {
AddContactAddress: false,
Country: 'Test',
PostalCode: 'test',
City: 'test',
Street: 'test',
HouseNo: 'test'
},
InsureTax: {
SocialSecurityNoExist: true,
SocialSecurityNo: 'test',
Insurance: {
PensionInsur: false,
CompPension: false,
CompPensionConsult: false,
HealthInsurInGER: true,
AdditionalHealthInsurPRT: false
},
MultiEmployment: {
MultiEmploy: false
},
Tax: {
TaxAlleinverdiener: false,
TaxFamily: false,
TaxPendler: false
}
},
DependentInfo: {
Dependent: false
},
Permits: {
WorkPermit: false
},
StudentsInterns: {
NonEUEmployCalendarYear: false,
NonEUDaysConfirm: false,
SemesterLeaveTrueFalse: false,
IsStudent: false
},
IdentificationInfo: {
PassportCountry: null,
IDNo: 'test'
},
Education: {
SchoolEnd: new Date(946684800000),
HighestQuali: 'NonVoc',
HighestSchoolCZ: 'Test',
HighestQualiOther: null,
SchoolName: 'test'
},
Bank: {
AccountNo: 'test',
BankCode: 'test'
},
AddressContact: {
PostalCode: null,
City: null,
CountryContact: null,
HouseNo: null,
Street: null
}
},
Contract: {
ContractSignPlace: 'Prague',
ProbationDurationMonths: 3,
CountryEmploy: 'CZ',
Group: 'mgm tp',
FirstDayDate: null,
CompanyCalc: 'mgm technology partners s.r.o.',
EntryDate: new Date(1724544000000),
ContractSignDate: new Date(1714348800000),
ContractType: 'employee',
InternTypeDetails: null,
ContractUnLimited: 'indefinite',
ExitDate: null,
Compensation: {
SalaryProbation: false,
CurrencyCalc: 'Kč',
SalaryHourly: null,
SalaryHourlyLettersLocal: null,
SalaryHourlyLettersEn: null,
SalaryHourlyDecimalPartLettersLocal: null,
SalaryHourlyDecimalPartLettersEn: null,
SalaryMonthlyAfterProb: null,
SalaryMonthlyAfterProbLettersLocal: null,
SalaryMonthlyAfterProbLettersEn: null,
SalaryMonthlyAfterProbDecimalPartLettersLocal: null,
SalaryMonthlyAfterProbDecimalPartLettersEn: null,
SalaryMonthlyParttimeAfterProb: null,
SalaryMonthlyParttimeAfterProbLettersLocal: null,
SalaryMonthlyParttimeAfterProbDecimalPartLettersLocal: null,
SalaryMonthlyParttimeAfterProbLettersEn: null,
SalaryMonthlyParttimeAfterProbDecimalPartLettersEn: null,
SalaryMonthlyParttime: null,
SalaryMonthlyParttimeLettersLocal: null,
SalaryMonthlyParttimeLettersEn: null,
SalaryYearlyAfterProb: null,
SalaryYearlyAfterProbLettersLocal: null,
SalaryYearlyAfterProbLettersEn: null,
SalaryYearlyAfterProbDecimalPartLettersLocal: null,
SalaryYearlyAfterProbDecimalPartLettersEn: null,
SalaryYearlyParttimeAfterProb: null,
SalaryYearlyParttimeAfterProbLettersLocal: null,
SalaryYearlyParttimeAfterProbDecimalPartLettersLocal: null,
SalaryYearlyParttimeAfterProbLettersEn: null,
SalaryYearlyParttimeAfterProbDecimalPartLettersEn: null,
SalaryMonthly: 666,
SalaryMonthlyLettersLocal: 'šest set šedesát šest celých nula nula',
SalaryMonthlyLettersEn: 'six hundred and sixty-six point zero zero',
SalaryMonthlyDecimalPartLettersLocal: null,
SalaryMonthlyDecimalPartLettersEn: null,
SalaryMonthlyParttimeDecimalPartLettersLocal: null,
SalaryMonthlyParttimeDecimalPartLettersEn: null,
SalaryMonthlyCalcLettersLocal: null,
SalaryMonthlyCalcLettersEn: null
},
HoursAbsences: {
VacationParttime: null,
VacationParttimeHours: null,
WeekHoursHHMM: null,
VacationFulltime: 20,
FullPartTime: 'Full',
WeekHours: null
},
Organisational: {
JobDescriptionCalc: 'not applicable',
Subsidiary: 'prg',
JobTitleContract: 'ITSpec'
}
},
Hire: {
JobTicket: false,
OSChoice: 'win',
OSExp: null,
KeyboardChoice: 'en'
},
MetaData: {
IsPublished: true,
Ext<PROJECT_NAME>UserId: '9ca118b2-47cc-4be9-9873-d919e987cb7d',
EmployeeUUID: '9df861c9-f69b-4ecb-9cbd-c159bd711c2b',
Process: {
Status: 'OnboardFormSent',
CreationDate: new Date(1718091440000),
DeclineReason: null,
ReviewType: 'NO_PEER_REVIEW',
OfferSentOnDate: new Date(1718064000000),
OfferSentDueDate: new Date(1719273600000),
Ext<PROJECT_NAME>ProcessStatus: 'ONBOARDING_FORM_SUBMITTED',
LatestOfferSentOnDate: new Date(1718064000000),
Assignees: {
ResponsibleHrId: 'timUsr-dvadmin',
ResponsibleHrName: '<PROJECT_NAME> Admin',
ResponsibleHrEmail: '<PROJECT_NAME>+admin@<INTERNAL_LINK>',
ResponsibleHrPhone: null,
DefaultTaskAssigneeId: 'timUsr-dvadmin',
DefaultTaskAssigneeName: '<PROJECT_NAME> Admin',
TaskAssigneeId: 'timUsr-dvadmin',
TaskAssigneeName: '<PROJECT_NAME> Admin',
PeerReviewerName: null
},
Comment: {
HasNewComment: false
},
Decisions: {
NeedsReedit: false,
NeedsArchive: false,
ReviewResult: null,
OfferLetterReviewResult: null,
OfferLetterDecision: 'Accepted',
OfferDecision: null,
StatusHistories: [
{
Status: 'ContractDraft',
Index: 1
},
{
Status: 'OfferLetterNoReview',
Index: 1
},
{
Status: 'OfferLetterSent',
Index: 1
},
{
Status: 'OnboardFormSent',
Index: 1
}
]
}
},
Workflow: {
Task: {
DueDate: new Date(1719280800000)
}
},
UIDependency: {
MultiEmployOtherHideHelpField: true,
VacationParttimeHideHelpField: true,
WeekHoursHHMMHideHelpField: true,
PassportHideHelpField: false,
HourlySalaryHideHelpField: true,
DistributionHoursHideHelpField: true,
MonthlySalaryAfterPropHideHelpField: null,
MultiEmployTableHideHelpField: true,
StudentDetailsHideHelpField: true,
SocialSecurityNoExistHideHelpField: false,
MonthlySalaryParttimeHideHelpField: null,
YearlySalaryAfterPropHideHelpField: true,
MonthlySalaryHideHelpField: false,
WorkPermitShowHelpField: false,
HiringForm: {
IDNoHideHelpField: true,
DeclinedByShowHelpField: 'hide',
DeclineReasonShowHelpField: 'hide',
OfferLetterDecisionShowHelpField: false,
OfferDecisionShowHelpField: false,
DateFromBirthdateHelpField: 3,
YearFromBirthdateHelpField: 1985,
MonthFromBirthdateHelpField: 10
},
OnboardingForm: {
OnboardFormSentDecisionShowHelpField: true
}
}
},
OfferContractFiles: {
OfferContractsGenerated: [
{
ContractTemplate: 'CZ-TP-Employee-Fulltime-Indefinite-2024-02',
CreationDate: new Date(1718091686000),
ContractAmendment: null,
PersonSignature: 'Person_1',
OfferContractFile: {
content: null,
attachment_id: '29159fad-59d7-464b-9b89-5a8213084661',
internal_filename: '2024-06-11_CZ_Test_offer_mgm_V1.pdf',
original_filename: '2024-06-11_CZ_Test_offer_mgm_V1.pdf',
size: 872267,
mime_type: 'application/pdf'
}
}
],
OfferContractsSent: [
{
OfferContractSyncStatus: 'SENT',
BatchNumber: 1,
FileType: 'MainContract',
SentOnDate: new Date(1718098602000),
DueOnDate: new Date(1719308202000),
CreationDate: new Date(1718091856000),
OfferContractFile: {
content: null,
attachment_id: 'c0184b12-a27a-4236-bca9-13a5441d364d',
internal_filename: 'test.pdf',
original_filename: 'test.pdf',
size: 183937,
mime_type: 'application/pdf'
}
}
]
}
},
a12wf: {
workflowsInternalDocumentStatus: 'NON_EMPTY',
processDefinition: {
key: 'Process_Onboarding',
name: 'OnboardingProcess'
},
process: {
id: '039b4585-27c6-11ef-8136-703217c31384',
businessKey: 'CandidateBusiness',
initiator: 'timUsr-dvadmin'
},
taskDefinition: {
key: 'Task_UpdateOnboardFormSentFeedback',
name: 'Update Onboard Form Feedback',
formKey: 'Task_UpdateOnboardFormSentFeedback'
},
task: {
id: '76bcff1b-27c6-11ef-8136-703217c31384',
creationDate: new Date(1718091882000),
dueDate: null,
assignee: null
}
},
id: 'CandidateDMProcess/2',
modelId: 'CandidateDMProcess'
}
}
You can see that NatoinalCitizen is false, EUCitizen is true, CountryEmploy is CZ and IDNoHideHelpField is true when hide is false in the code.
When I unselected EUCitizen and then selected it back, I had these diffs:
EUCitizen to false:
EUCitizen to true:
And now my IDNo field is displayed.
I really don’t understand what’s wrong here.