Jump to content

Signature Field Requirements


Recommended Posts

Hello ababcock,

 

I am sorry, I am not sure that understand you correctly.

A user enters a name (username?) in a field, clicks the "Submit" button and if the entered name is not the name of the logged user, alert message is displayed and a record is not added to the DataBase. Is it correct?

 

If I understand the logic correctly, maybe, you can use a Standard Feature "Stamp a Record with User Profile Data"?

Does it work for you?
 

Link to comment
Share on other sites

I was able to accomplish this by adding an HTML block after the Signature field and filling it with this:

 

<script>
 
document.getElementById('caspioform').onsubmit= function (){
 
 
 
var myname = document.getElementById('InsertRecordSignature').value;
 
if (myname != '[@authfield:User_List_Signature_Name]'){
 
alert('Not a valid name');
 
return false;
 
}
 
 
 
}
 
</script>
 
If a user tries to enter a name other than the one registered to them, they get the alert 'Not a valid name.'
 
I tested it out, and it works! Thanks!
Link to comment
Share on other sites

  • 6 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...