Message 1 of 6
Need help with iLogic rule for empty prompted entry (idw Field Text)

Not applicable
03-13-2019
10:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello All,
I was wondering if someone can check the iLogic rule I attached below. What I'm trying to do is for this iLogic to alert me with a message box that the prompted fields (idw Field Text) in my title block is empty and needed to be filled out. The 2 prompts are "DRAWN BY" and "CREATION TIME". I ran this rule be it kept directing to iProperties "DESIGNER" field instead, I do not want this rule to look into iProperties at all. I also attached some snip shots of the prompted fields (idw Field Text) that I was referring to. I am a beginner iLogic user, so if you can please help me fix this rule and let me know what I did wrong it would be much appreciated.
Dim doc = ThisDoc.Document Dim oDrawnBy As String = doc.PropertySets.Item("Design Tracking Properties").Item("Designer").Value Dim oCreationDate As String = doc.PropertySets.Item("Design Tracking Properties").Item("Creation Time").Value If oDesigner = "" Then oDesig = InputBox("Designer prompted entry", "DRAWN BY", "Default Entry") doc.PropertySets.Item("Design Tracking Properties").Item("Designer").Value= oDesig End If If oCreationDate < "01/01/1970" Then odate = InputBox("Creation Time prompted entry", "DRAWN BY", "01/01/2018") doc.PropertySets.Item("Design Tracking Properties").Item("Creation Time").Value = odate End If