Add a feature to mark a form as NON-live

Post any suggestions or enhancement requests about the Verj.io platform or this Forum

Moderators: Jon, Steve, Ian, Dave

neilnewman
Ebase User
Posts: 201
Joined: Fri Dec 20, 2013 1:29 pm
Location: Dartford Borough Council
Contact:

Add a feature to mark a form as NON-live

#1

Postby neilnewman » Thu Mar 22, 2018 3:28 pm

We currently have a number of live Ebase forms linked into our website.
Within Ebase we have a number of development forms, which can also be used externally if you happen to stumble across the correct URL.
Would it be possible to mark a development form as non-live so that it cannot be seen externally within what is our LIVE Ebase forms deployment, or would we need to migrate all the dev work from our live deployment into our test non live installation that has no route to the outside world?
0 x

Steve
Moderator
Moderator
Posts: 414
Joined: Fri Sep 07, 2007 3:44 pm
Location: Sandy, UK
Contact:

Re: Add a feature to mark a form as NON-live

#2

Postby Steve » Thu Apr 26, 2018 10:39 am

Hi Neil,

At present there is no way to do this from on a form.

I think the best option for you is to set a java System property with a flag at startup on the server

-Ddevelopment.mode=true

Then implement a BEFORE form event on any forms that you do not want accessed in a LIVE environment and check for this flag:

Code: Select all

var devMode = isDevelopment();

if(!devMode)
{
   form.gotoForm("MY_HOME");
}

function isDevelopment()
{
   return "true" == java.lang.System.getProperty("development.mode");
}
Kind regards

Steve Upton
0 x

neilnewman
Ebase User
Posts: 201
Joined: Fri Dec 20, 2013 1:29 pm
Location: Dartford Borough Council
Contact:

Re: Add a feature to mark a form as NON-live

#3

Postby neilnewman » Thu Apr 26, 2018 10:45 am

Thanks for the reply Steve,
Looks like a way forward.
We have a number of forms that use backend system integration, these we would want to disable if this backend system was down for maintenance.

many thanks
Neil
0 x


Who is online

Users browsing this forum: Google [Bot] and 3 guests