This topic is locked
[SOLVED]

 Add Field Value in an Alert

9/27/2010 4:49:54 PM
ASPRunnerPro General questions
J
Jay123 author

Hi!
I am using ASP Runner 6.1.
I would like to ask how you can add a field value in an alert. If a have a value in Field1 as "Hello", how can I add that after the phrase "Pls. say" below?

=======================================================

Flush_output

Response.Write "<script>alert('Pls. say .')</script>"

=======================================================
Thanks,

Jay

Sergey Kornilov admin 9/27/2010

It depends on what event you use.

J
Jay123 author 9/28/2010

Hi Sergey,
I wanted to use it in

  1. Add Page Before Record Added
  2. Add Page After Record Added
  3. Add Page Before Display
    Thanks,

    Jay

J
Jay123 author 10/7/2010

Hi,
I would like to follow up my previous note.
I wanted to use it in

  1. Add Page Before Record Added
  2. Add Page After Record Added
  3. Add Page Before Display
    Thanks,

    Jay

Sergey Kornilov admin 10/7/2010

According to BeforeRecordAdded manual topic you can access any field value as values("FieldName"):

http://xlinesoft.com/asprunnerpro/docs/before_record_added.htm

J
Jay123 author 10/7/2010

Thanks, Sergey.
It would be

=============================================================================

Flush_output

Response.Write "<script>alert('Pls. say " & values("Field1") & ".')</script>"