You are viewing limited content. For full access, please sign in.

Question

Question

What is the possibility to block a form intentionally?

asked on February 21, 2014

 

This is the case for a client:

Users submit Forms by Windows authentication credentials but if a user gets promoted or dismissed sometimes it takes time (days) to the IT crew to update the AD status of the employee.

We got a table to bring more info from that user as:

  • Department
  • Email
  • Boss
  • Extension
  • Status in the company (Active/Inactive)
  • Others

We populate fields in the form by this table and also there are other fields captured by the submitter

 

They tell me that they can change value in the column “ActiveInactive” from Active to Inactive faster than the IT staff so they want to know if it’s possible to restrict a form obviously  no to invoke the forms because they are still in the AD but at least don’t let them submit the form.

 

If you put a segment obligatory to capture and you hide it in the form still can be submitted (I´m ok with this new option).

And you cannot make a field obligatory and read only at the same time trying to make a field pop and don’t let you capture required info so by result you can’t submit the form

 

Any ideas for this case? Maybe a different approach…

0 0

Answer

APPROVED ANSWER
replied on February 21, 2014

See this thread which discusses using javascript to hide the submit button. The javascript code can check for the active/inactive user status to control whether or not it will display or hide the submit button.

1 0

Replies

replied on February 21, 2014

Hide a field that takes in the current users account as the value by default (it's a token).

 

Use that for your lookup to find if it's inactive.

 

Then use a stored procedure to go if that second field is active.

 

Basically, set up 3 fields,

  1. has a default value of Current User - Hide it with Javascript to allow forms to still use it for a lookup.
  2. fill with the lookup rule - Hide with javascript on pageload but also, onChange have it check the value inside the field for Active or Inactive.
  3. Fill with javascript with the current user if they are active, and then use that for your lookup. make this field read-only using javascript and then undo that read-only when you need to fill it.

 

0 0
replied on February 21, 2014

I'll try the two options but the hide submit button looks pretty attractive

 

Thanks for the ideas

0 0
replied on February 25, 2014

I try the second option and doesn’t work at the beginning because my field status it’s not a drop list so the Java Script just hide the submit button without wait for the change.

The user status came from a database not from the capture of the user so I change the field to a drop list in which I create the two values (Active/Inactive) so when the dynamic field paste the value now the script do work

 

Thanks & regards

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.