cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

mandatory item level field in Cloud for Customer (C4C)

former_member606838
Participant
0 Likes
1,798

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?

Accepted Solutions (0)

Answers (2)

Answers (2)

andy_blankley
Participant

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:

  1. Mandatory.
  2. Visible.
  3. Read-Only.

.

To do this you must follow the below steps:

  1. Enter Adaption Mode on the screen containing the field(s).
  2. Hover over the fields.
  3. Click on field properties.
  4. Here you will see the above 3 properties to control!
  5. Next to the properties you will see the link "Rule".
  6. Click on this link.
  7. Once here, you will now have the option to define a rule which will determine if the property is set or not.

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

former_member606838
Participant
0 Likes

Hi Andrew,

Thanks for the feedback. I tried to comment earlier and it didn't let me so The next answer has some questions.

former_member606838
Participant
0 Likes

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