NetTalk Central

Author Topic: Conditional Heading and SubHeading on a NetwebForm  (Read 2659 times)

JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Conditional Heading and SubHeading on a NetwebForm
« on: February 05, 2014, 12:10:21 AM »
Hi,

How would I have a conditional Heading and SubHeading on a NetwebForm?
I am trying to have different headings for changes and inserts.

Currently looking at creating a function and passing the form action, but not sure if this will be the easiest way to do this.

thanks for any advice

johan

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Conditional Heading and SubHeading on a NetwebForm
« Reply #1 on: February 05, 2014, 07:56:31 AM »
The clarion CHOOSE command makes for a good inline IF statement.
eg
Choose(loc:act = Net:InsertRecord,'Insert','Update')

But changing the header to match the action is very "old school". (because no-one reads the header....)


JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Re: Conditional Heading and SubHeading on a NetwebForm
« Reply #2 on: February 05, 2014, 10:13:31 PM »

Hi Bruce

thanks, that seems simple enough.

I am using the same form for member signup and for an existing member to update his profile,
so am using the header to entice/lure a signup for a non member,
and for an existing member what will happen to him if he does not keep his profile up to date.


Johan