- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hi,
I suspect that the references to the object are not correct or you have unnamed subforms/pages.
When referencing objects you are use a relative reference, which specifies the object with the minimum amount of information. - "clear as mud".
For example if two objects are on the same page (and in the same subform), then this would work:
this.rawValue = textfield1.rawValue;
However if textfield1 was on a different page and in a subform, the relative reference needs mor information:
this.rawValue = page1.subform1.textfield1.rawValue;
This example is not finished yet, so that it with a pinch of salt. If you open it in Acrobat/Reader and then hover over the script. The intention is that it will highlight each part of the reference. As yet there is no supporting text in it - it is a work in progress.
There is a trick that you can use in LC Designer to automatically insert references.
- Select the object that you want to insert script into.
- Click into the script editor.
- Scroll to the object that you want to reference (DON'T select it).
- Reselect/click into the script editor.
- Now press and hold the Control key.
- As you hover the mouse over the object you want to reference, the pointer will turn into a 'V'.
- Still holding the Control key, click the object.
- LC Designer will insert as full a reference as is required.
Hope that helps,
Niall
Views
Replies
Total Likes