Answers.Body: <p>That is most likely a bug in the html snippet generator. Changing the snippet is indeed the solution to your problem, and as long as it works for your form no I wouldn't worry about that change causing problems.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-17T02:04:18.410Z
Answers.LastActivityDate: 2015-06-17T02:04:18.410Z
Answers.UserDisplayName: Coleman
Body: <p>I had trouble with ajax Country / State dropdowns in a profile used as an HTML snippet embedded in a Joomla page.  The dropdowns worked fine in the profile in create mode.  I realized that the HTML snippet defines isFrontend as "false", whereas the create mode defines it as 1.</p>
  
  <p>When set to "false", the query for a list of states upon a country change tries to access the administrator area, which fails because of authentication problems.  Changing the HTML snippet code to set isFrontend to 1 fixes that problem.</p>
  
  <p>Is there a reason it's set to "false"?  Am I in danger of breaking something else?  Is this a bug in the generated HTML snippet?</p>
  
Tags: <ajax>
Title: Why is isFrontend set differently for Profile in create mode vs HTML snippet?
ThreadText: # Why is isFrontend set differently for Profile in create mode vs HTML snippet?
  
  (Asked by: username_0 on 2015-06-17)
  
  I had trouble with ajax Country / State dropdowns in a profile used as an HTML snippet embedded in a Joomla page. The dropdowns worked fine in the profile in create mode. I realized that the HTML snippet defines isFrontend as "false", whereas the create mode defines it as 1.
  
  When set to "false", the query for a list of states upon a country change tries to access the administrator area, which fails because of authentication problems. Changing the HTML snippet code to set isFrontend to 1 fixes that problem.
  
  Is there a reason it's set to "false"? Am I in danger of breaking something else? Is this a bug in the generated HTML snippet?
  
  **Tags:** ajax
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-06-17. Score: 1 | Accepted answer
  
  That is most likely a bug in the html snippet generator. Changing the snippet is indeed the solution to your problem, and as long as it works for your form no I wouldn't worry about that change causing problems.
  
  
  ---
  
  