April 23, 2019
Retrieve multiple email
Comments
(3)
April 23, 2019
Retrieve multiple email
Newbie 5 posts
Followers: 2 people
(3)

I need to retrieve multiple email which is provided in the form..And for every mail i need to create unique id.please help with this.

3 Comments
2019-04-26 09:55:14
2019-04-26 09:55:14

can we use isValid() method of coldfusion in javascript

 

Like
2019-04-26 06:06:00
2019-04-26 06:06:00

Thank u Charlie Arehart,

But my question is i need to validate one field with multiple email.And my validation part should be in cfm page…i need to validate the compleate email,which should accepts proper extension…

 

</a><input type=”email” testid=”” id=”id2″ name=”” value=”” class=”cp_textInput” required multiple>
<p id=”demo1″>

 

<script>
function myFunction() {
var inpObj = document.getElementById(“id1”);
if (!inpObj.checkValidity())
{
document.getElementById(“demo”).innerHTML = “Subject field should not be empty”;
}

Like
2019-04-25 15:22:21
2019-04-25 15:22:21

Do you really mean email (as in email content) or email addresses? I assume you mean email addresses. And as for “retrieve”, do you mean you want to access the values passed in on the form? And do you mean they are in multiple fields? or one field with multiple addresses?

If you do a dump of the form scope, you will see what’s being passed in:
<cfdump var=”#form#”>
If that gives you an error, then you are doing it when there is not yet a form scope, so wrap it in a test for its existence, such as:

<cfif isdefined(“form”)>
<cfdump var=”#form#”>
</cfif>

If you need more help, can you show us an example (perhaps about 5 lines) of what the form and form fields would look like)?

Like
Add Comment