on ‎2019 Apr 25 12:08 PM
Hi experts!
I have the following question. I have 3 custom fields that we added in the CustomerQuote (Sales Offer) Screen using adaption mode. The three fields are Country , Region, and Premium highlighted below:

The question is can I make the field Premium mandatory based one the selection of region? In other words, there are 2 selections in region that should make the field Premium mandatory.
Can I do this without using SDK (SAP Cloud Application Studio)?
If the use of SDK is necessary, what should I do exactly?
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
Dear Mousa,
Hope you are well.
Of course you can! 🙂 and without any assistance of the SDK.
If you have create the fields via Adaption mode, you can maintain a Rule that will define when the UI property will be activated on client side.
You can control the below properties:
.
To do this you must follow the below steps:
Images for Reference:
.


.
There is more information on this in the SAP Cloud For Customer Help Guide. I would recommend checking here too!
.
Hope this helps! Don't forget to mark this question as Answered following success.
Kind regards,
Andy Blankley
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Andrew.
Thanks for you response. I tried that approach but the problem with it is the property "mandatory" is not available for the filed I am tried to make mandatory.

Let me even make simpler. The client wanted even a simpler way to notify the end user that if he selected some specific region then he should fill the premium. I added one validation to the whole table onSave. The logic is to check whether the value of Region is set to "FREE" then just show an information message to the user to let him know that he has to fill the premium as you can see here.


The problem is that I am always having a false result even though the region is already set to FREE. and both the ID and the Value in the drop down has the same value "FREE". Any idea or suggestions about this?

Thanks again,
Mousa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.