@Abstract problem

Please help me on the below issue.Some details about this issue are

  1. There are two fields in the form. One is “changeRequestSummary”, which is a rich text field where the user types in the summary. And the other one

    is “SummaryText”, which is a computed - text field which is hidden and its computed formula is -

@Abstract ([TextOnly]; 256; “”;“changeRequestSummary”).

  1. “Submit for Approval” is the hotspot button which the user clicks to submit the Change Request for approval. This hotspot has some javascript validations that include the Summary field validation for null check. The field used for Javascript validation is “SummarText” (hidden field).

This error occurs only on this JS validation. This error does not occur if we give the ‘SummaryText’ field value as “changeRequestSummary” instead of the @Abstract formula.

Have any of you come across such issue earlier. Or is any one aware of how this can be handled in JS validation.

Thanks

Subject: @Abstract problem

You haven’t mentioned what error you are getting.

Mostly what I think is that “SummayText” is ‘undefined’ for Java Script. This happens because it is a hidden field. Open the form properties and go to second tab and enable “Generate HTML for all fields”. Save the form and test it again.

You need to eloborate more on this.

–Phani

Subject: @Abstract problem

Thank you Phani for your reponse.

The form porpoerty “Generate HTML for All Fields” is already enabled in the form. Actually the error occurs when user uses “ENTER” key while typing free text in the richtext box (“changeRequestSummary”)

As the hidden field “SummaryText” have the computed formula as @Abstract ([TextOnly]; 256; “”;“changeRequestSummary”), and this fails when the rich text field have "Enter"s in its text.

The error thrown during JS validation is - “SummaryText is null or not an object”.

Thank you.

Subject: RE: @Abstract problem

As far as I know there should not be any problem with "Enter"s in rich text field.

Why not post your code.

As per the error, the field “SummaryText” is not created in the document itself for the JS to pick its value.

–Phani