I am uploading the form I am working with and a screen shot of what I am trying to do. I've figured out that "<validate nullTest="error"/>" is added to an object when i change it to "user required" within the properties on the side of the livecycle wysiwyg environment. I really like how adobe handles the required error and stops all other processes while also outlining the menacing field in red.
What I need to do is store the null test but I'm not sure how I can drop this information into the xml. I tried using document.write but that didn't work so I'm not sure what I am doing wrong.
if (RadioLocation.rawValue == "1")
var required = "<validate nullTest="error"/>";
I need something like this I think but am not too sure how to get this to work exactly. I though I could put this inside the object I wanted to become required dynamically if RadioLocation.rawValue == "1" but it didn't work so I'm not sure what I am doing wrong. I'm pretty certain it has something to do with the syntax but have no idea what i could do differently in this case as I am brand new to livecycle code.