Help with formula for radio button?

Hey all,

Can someone provide me an example either in formula for my radio button.

My radio button is called “Response” and there are two options “Yes” and “No”.

Once the fields have been filled out, the manager will have to decide whether they would like to take the request on further and therefore make a decision using the options “Yes” and “No”.

I would like it so that based on the users selection yes or no, the status will change accordingly to “Approve” or “Rejected” and a mail is then sent out to the users.

However I know this sounds stupid but I’ve gone blank with how to write the formula based on the users selection.

So for instance if the manager selectes the “Yes” option, and then clicks the save and submit action button, the status will change to “Approved” and the mail will then be sent out. If the “No” option is selected the status will change to “Rejected” etc.

Here is the formula I have used in the action button: -

@Command( [EditDocument] );

@Command( [ViewRefreshFields] );

@Command( [FileSave] );

MailTo:= BAManager;

MailTo1:= CCManager;

@MailSend(MailTo; MailTo1; “”; "NEW Request: "; “FYI: Information Regarding Project Request…” + @NewLine + @NewLine + "Event details have been logged with regards to the new request made. The following approval process has been made… Seek the attached link for more information. "; “”;[IncludeDoclink]);

@SetField(“Status”; “Approved”);

If anyone could provide me with an example formua I’d be ever so greatful.

Thank you in advance

Diz. E

Subject: Help with formula for radio button?

Hi!Maybe it’s more simple if you have two buttons with diferent hidden formula. If the user choose “yes” or “no” just show one or another button.

Subject: Help with formula for radio button?

You can use @if to check what value has been selected. Something like the following

@If(Response = “Yes”;

@Do(

@SetField(“Status”; “Approved”);

@Mailsend(…)

);

Response = “No”;

@Do(

@SetField(“Status”; “Rejected”);

@Mailsend(…)

);

@prompt([OK]; “Error”; “Please state whether this jas been accepted or rejected”));

Subject: RE: Help with formula for radio button?

Thanks - works a treat!