Dear Brilliant minds,
Save me from this problem please,
I have a text field with default value set with a formula, And its value also dependent on a option button(option1 ) value.
If option button chosen as 'Auto[1]' : Text box will be disabled and value 100 will be assigned.
If option button chosen as 'Manual[2]' : Text box will be enabled and value 200 will be assigned. But here user will be able to enter a new value as they like.
Problem: Assume that user chosen option button as 'Manual[2]' and changed the assigned value 200 to 300 then submitted the form.
When we reopen the form the default value formula will run again and the actual saved value 300 will changed to 200.
Note: I already tried disabling 'Refresh when formula is recalculated' - but there are some calculation to be done in new form which needs re calculation.
The solution I nearly succeeded with is - Giving an extra field(RunFormula) with Boolean values and setting it to TRUE when ever I needed to run default formula,
But here the issue is - I expect to get the saved value in field when whole conditions are failed but I get empty field. (See below formula)
concat(substring(SendAmount * (field353), 1, (currYear = sendValidYear and option1 = 1) * string-length(SendAmount * (field353))), substring(SendAmount * (1 / 12), 1, (currYear < sendValidYear and option1 = 1) * string-length(SendAmount * (1 / 12))), substring(0, 1, (option1 = 2 and monthsOfSap > 1 and currYear = sendValidYear and RunFormula = "1") * string-length(0)), substring(SendAmount, 1, (option1 = 2 and monthsOfSap = 1 and currYear = sendValidYear and RunFormula = "1") * string-length(SendAmount)), substring(SendAmount, 1, (option1 = 2 and currYear < sendValidYear and RunFormula = "1") * string-length(SendAmount)), substring(0, 1, (sendValidYear = "" and option1 = 1) * string-length(0)))
So when I got empty in text field when all conditions fails, I added below condition to the default value.
substring(., 1, (option1 = 2 and RunFormula = "0") * string-length(.)), [assigning the text field value itself when 'RunFormula' is 0]
This returned the error 'The number of calculations used for a single action exceeded the maximum limit' even I got the error some of the values came right and others are blank.(I have 12 fields with same setup)
Sorry for the large content, But I really need your help.
Cheers,
Christy