Rabu, 23 April 2014

How to make a field required using a conditional expression

This entry is part of the Conditional Expressions HowTo.

In this post I will show how to make the Remarks field required in the Receiving application when returning items. This is just an example and the same configuration can be used to hide or show any field based on a particular condition.
similar post describes how to achieve the same functionality using Data Restrictions.

Define conditional expression

Open Administration - Conditional Expression Manager application. Create the following conditional expression.
  • Condition: MATRETURN
  • Description: Return material
  • Expression: issuetype='RETURN'
  • Always Evaluate: False


Configure RECEIPTS application

Open System Configuration - Platform Configuration - Applications Designer application and edit the RECEIPTS application. Select the Remarks field of the Material Receipts section of Material Receipts tab and open the properties window. Click on Configure Conditional Properties button (on TPAE 7.5 it is in the Advanced tab) and configure it as follows.
  • Signature Option: READ
  • Security Group: EVERYONE
  • Property: inputmode
  • Value: required

Here is how the Conditional Properties properties should look like.


Now open the Receipts application you will see that the remarks field is now required when returning an item.




Source:http://maximodev.blogspot.com/2012/05/make-field-required-conditional.html

Tidak ada komentar:

Posting Komentar