Check for empty data entry field Follow

0
Avatar
Christopher Purl

I'm having an issue checking the data for text input fields in the data entry page as they relate to the actual label.

Like, I have a text input field called TagNumberInput

but if I say

If Format.Objects("TagNumberInput").Value = "" then

It gives me an error and says that that operation is not available.
Am just using improper syntax, or is there a different way entirely to access the text input fields to make determinations for data entry values?

2 comments

0
Avatar
Pete Thane
Comment actions Permalink

Hi Christopher,

I believe it is you are calling the Object and not the Named sub-string.

Here is my VB which populates a text string after a Data Entry/Prompt value has been entered

 

Value = "Hello"
If Format.NamedSubStrings("TagNumberInput").Value = "" then
Value = "Nowt there"
else Value = "Summat there"
end if

Value = Value

 

This is set as an Event Controlled Script > Post Prompt so that it is processed after the value has been entered into the TagNumberInput text field.

Pete

0
Avatar
Christopher Purl
Comment actions Permalink

Thank you for your reply!

Didn't realize I needed to bridge the template data with the label output by using a named data source.

That looks like it solved it!

Please sign in to leave a comment.