• karthik subramanian 13
  • 0 Points
  • Member since 2017

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
  • 3
Salesforce1 Mobile basics unit 5/5 - Creating Object-Specific Publisher Actions

I believe I have follwed the requirements explicitly, three times now.  Validated that the publisher action actually does what it's supposed to but the check from Trailhead returns an error.  
"Challenge not yet complete... here's what's wrong: 
There was an unhandled exception. Error: NoMethodError. Message: undefined method `each' for nil:NilClass"
Error message

I have deactivated all Account triggers to insure there's not a conflict.
I have zero data validation rules on the Account object.
I have zero workflow rules on the Account object.
I have checked that all Approvals are deactivated.

Here are all of the components...

Update Account Information action
Publisher Layout
Account Detail publisher layout
Page Layout
Account Layout

Functional Results
Update Results

I'm quite anxious to complete this unit as it's the only one I have left.
<apex:page controller="SamePageController" tabstyle="Lead" standardStylesheets="false" >
<script type="text/javascript">
function grabExName()
var ex = document.getElementById("exname").value;

<apex:sectionHeader title="Create Extranets">


<apex:pageBlockSection columns="3" title="Extranet Information">

<apex:outputLabel style="font-weight:bold;" value="Extranet Name" for="exname"/>
<apex:inputText id="exname" required="true" onkeydown="grabExName()"></apex:inputText




 What am I doing wrong here? I get an error which says document.getElementById("exname") does not exist. How do i refer the inputText id i created?