@Prompt - Show Message One Time

I have a dialog list field called “FixedPricingYears”. This field has the values “2 years”, “3 years”, “4 years”. When a user selects any choice except for 2 years, a message displays using @Prompt([Ok];“CMS Reminder”;“This Conract must be signed per (DSA) Policy.”);“”)

My dilemma is…I need the message to only display one time, even though the condition is true.

I welcome all comments and suggestions.

Subject: @Prompt - Show Message One Time

Is this for a new document only? Or every time the document is edited you want to issue this reminder?

In any case, you probably can do something like this in the field translation formula:

@If(

!(UserHasBeenWarned = “”);

FixedPricingYears;

FixedPricingYears = “2 years”:“”;

FixedPricingYears;

UserHasBeenWarned = “”;

@Do(

@Prompt([Ok];“CMS Reminder”;“This Conract must be signed per (DSA) Policy.”);

@SetField(“UserHasBeenWarned”; “1”);

FixedPricingYears

);

FixedPricingYears

)

Now, you may need to remove the field UserHasBeenWarned for every editing session if you need the warning to appear multiple times. The way I have it now is that once the user is warned, that’s it - no more warning.

Subject: RE: @Prompt - Show Message One Time

I tried your code today and it is not working for me.

It does not matter if the document is new or edited. I only want the message to appear one time - like a reminder.

Subject: @Prompt - Show Message One Time

Set a flag field.When the document opens, FlagField = “0”

Then, when the choice is made …

@if( FlagField = “1”; @Prompt …; “” );

FIELD FlagField := “1”;

“”

It’s a simple toggle to get around the issue.

Subject: @Prompt - Show Message One Time

Without seeing the code, I would guess that it is all being executed repeatedly. You can probably avoid this by using @while (or similar).