Type mismatch seems bogus
Problem:
I built a multi-page stateless form, following the excellent example of the Summer Camp Registration.
The pages 1 & 2 both store fields in the master form, as expected.
When attempting to follow the same process on page 3, I cannot add the code to the form definition, because I keep getting an error modifying the page, as follows:
The field rec.TargetRevenue1 is of type BIGINT. But you are trying to update it with data of type DECIMAL
However, the fields TargetRevenue1 and the corresponding field input.TargetRevenue1 appear to be identical.
If I look at the form definitions, or if I look at it through the wizard, all aspects appear identical.
I've even tried deleting the field and recreating it.
I've tried cut and paste from one form to the other.
I've tried renaming the fields.
Nothing seems to work.
When I deleted the offending line in the actions portion of the script, and attempt to save changes, I immediately get the same error for the next USD field, TargetRevenuePer.
It only seems to be a problem with fields of type USD. I don't know why the ZC will create one USD field as Big Int, and another as Decimal - especially since I can see no difference in the code.
I must be missing something, but I haven't been able to see it.
Please Help!!
Thank you
Kenny
field definition from long form:
- TargetRevenue1
(
displayname = "The Target annual gross revenue we'd like to achieve in the next 12-18 months is:"
type = USD
decimalplace = 0
width = 100px
)
Field definition from stateless form:
TargetRevenue1
(
displayname = "The Target annual gross revenue we'd like to achieve in the next 12-18 months is:"
type = USD
decimalplace = 0
width = 100px
)
- actions
{
Submit
(
type = submit
displayname = "Next"
on click
{
rec = ClientQuestions_LF [ID == input.ID1];
rec.Revenue = input.Revenue;
rec.TargetRevenue1 = input.TargetRevenue1;
rec.TargetRevenuePer = input.TargetRevenuePer;
openUrl(((("http://creator.zoho.com/" + zoho.adminuser) + "/clients/#Form:Competition?ID1=") + input.ID1) + "", "Same window");
}
)