- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hi,
I don't understand what you are trying to do, but calling the addInstance() returns the instance of the subform (or row) you have just added. So if I had a repeating subform called Subform1 which contained a text field called TextField1 then I could set the value of that field with.
var newInstance = _Subform1.addInstance();
newInstance.TextField1.rawValue = "some text";
Given a text field you can test if it contains a string with
if (/keyword/.test(Subform1.TextField1.rawValue))
{
console.println("match");
}
else
{
console.println("no match");
}
This will print "match" on the console if TextField1 contains the string "keyword" anywhere within it.
What I don't understand is how you want to use these two pieces of code.
Regards
Bruce
Views
Replies
Total Likes