I'd like to be able to pre-populate some DevDemon form fields depending on the URL. Is there a way to accomplish this?

  • What does your URL look like? Commented Sep 17, 2014 at 19:44

1 Answer 1


You can do it with jQuery. You'll just need to know the id of the field you are pre-populating.

   {if segment_1 == "foo"}
    <script type="text/javascript">
    $(function () {
      $('#ddform_21').val("Value 1");
      $('#ddform_46').val("Value 2");
      $('#ddform_87').val("Value 3");

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.