---
title: Using the PRE Field Attribute on NPR Report Writer Screens
description: PRE field check is executed after the end-user enters a non-printable character and executes even if the end-user enters a new non-nil value.
---

[![IPeopleHealthcare_White](https://blog.ipeople.com/hubfs/IPeopleHealthcare_White.png)](https://www.ipeople.com/)

- [Home](https://www.ipeople.com)
- Products 
    - [Professional Services](https://www.ipeople.com/products/meditech-services/)
    - [Downtime Product Suite](https://www.ipeople.com/products/suite)
- [Benefits](https://www.ipeople.com/benefits)
- [About](https://www.ipeople.com/about)
- [Contact](https://www.ipeople.com/contact)
- [IPeople Blog](https://blog.ipeople.com)

April 11, 2022

# Using the PRE Field Attribute on NPR Report Writer Screens

The PRE Field Checks occur before the FCL Field Checks.  They are executed after the end-user enters a non-printable character.  Unlike FCLs, they execute regardless of whether or not the end-user entered in a new non-nil value.

Here is an example (MAGIC) that converts whatever the end-user enters from lowercase to uppercase:   `PRE1=A~$L.TO.U^A`

Here is the same example but for C/S:   `PRE1=A@Trl2u^A`

Here is an example for MAGIC that automatically exits a screen if the end-user does not enter any value into a field:

`PRE1=IF{@Not(A) 231^/Z^t}`

Here is that sample example for C/S:   `PRE1=IF{@Not(A) 27^/Z,1^/(.S).SKIP.EXIT}`

This example will work for both MAGIC and C/S.  It pops up the exit prompt if no value is entered:   `PRE1=IF{@Not(A) 27^/Z}`

 Topics: [MEDITECH](https://blog.ipeople.com/topic/meditech), [Magic System](https://blog.ipeople.com/topic/magic-system), [NPR Report](https://blog.ipeople.com/topic/npr-report), [CS System](https://blog.ipeople.com/topic/cs-system)

## You Might Also Enjoy

<https://blog.ipeople.com/using-the-bfi-field-attribute-on-npr-report-writer-screens-magic-and-c/s>

#### [Using the BFI Field Attribute on NPR Report Writer Screens (MAGIC and C/S)](https://blog.ipeople.com/using-the-bfi-field-attribute-on-npr-report-writer-screens-magic-and-c/s)

BFI stands for Before Input. BFI attributes can come in pairs, just like FCL attributes. ...

<https://blog.ipeople.com/how-can-i-use-the-npr-report-writer-to-launch-windows-applications-from-meditech-cs>

#### [How can I use the NPR Report Writer to launch Windows applications from MEDITECH CS?](https://blog.ipeople.com/how-can-i-use-the-npr-report-writer-to-launch-windows-applications-from-meditech-cs)

There are two NPR Macros that can either launch a PC-based executable or automatically ...

<https://blog.ipeople.com/documenting-npr-field-attributes-line-attributes-and-footnotes>

#### [Documenting NPR Field Attributes, Line Attributes and Footnotes](https://blog.ipeople.com/documenting-npr-field-attributes-line-attributes-and-footnotes)

Entering documentation on Field Attributes, Line Attributes, and Footnotes can come in ...

<https://blog.ipeople.com/using-withstart-as-a-field-attribute>

#### [Using WITH=START as a Field Attribute](https://blog.ipeople.com/using-withstart-as-a-field-attribute)

WITH is a Field Attribute that determines when a field should be evaluated during a ...

<https://blog.ipeople.com/magic-function-for-returning-the-number-of-leading-characters>

#### [MAGIC function for returning the number of leading characters](https://blog.ipeople.com/magic-function-for-returning-the-number-of-leading-characters)

l (that's a lowercase L) is the MAGIC function for returning the number of leading ...

[![IPeopleHealthcare_FullColor](https://blog.ipeople.com/hubfs/IPeopleHealthcare_FullColor.png)](https://www.ipeople.com/)

#### CONTACT

- [+1-214-222-1125](tel:+1-214-222-1125)
- [support@ipeople.com](mailto:support@ipeople.com)
- [sales@ipeople.com](mailto:sales@ipeople.com)

#### [JOIN OUR TEAM](https://ipeople.bamboohr.com/jobs/)

#### FOLLOW

- [![Facebook](https://blog.ipeople.com/hubfs/Facebook.svg)](https://www.facebook.com/IPeoplehealthcareTX)
- [![Instagram](https://blog.ipeople.com/hubfs/Instagram.svg)](https://www.instagram.com/interfacepeople/)
- [![Linkedin](https://blog.ipeople.com/hubfs/Linkedin.svg)](https://www.linkedin.com/company/ipeople-healthcare)
- [![Twitter](https://blog.ipeople.com/hubfs/Twitter.svg)](https://twitter.com/InterfacePeople)
- [![email_icon](https://blog.ipeople.com/hubfs/email_icon.svg)](mailto:support@ipeople.com)

 

![](https://blog.ipeople.com/hubfs/IPeople_2022_Aug/Images/Home/arrow-up.png)