Loading

Pre-fill text in input fields?

I am using the text_field "submitted_address", class:"text" variable and the pre-fill text is not showing up. Can anyone tell me how I could either edit this text or make the prefill text show up. Thanks very much

Official response from completed

Elizabeth, try adding this to the template and replace XXXX with your desired text.

<script>$(document).ready(function() {$("#signup_submitted_address").DefaultValue("XXXX");});</script>

 

How would you tag this question?
Do you like this question?

Showing 5 reactions

Wrap code snippets in <code></code> tags.

  • commented 2013-03-17 15:41:10 -0700 · Flag
    Oops, that code created some havoc in the previous comment, it is not at all what I had entered, I have no idea where the Twitter stuff came from.

    What I actually did was use the script suggested above but replace signup_submitted_address with event_page_name
  • commented 2013-03-17 15:36:13 -0700 · Flag
    Can I use this to pre-set a suggested event name in users_event_pages_new.html ?

    If so, what code do I use?

    I tried this but it doesn’t seem to work…
    $(document).ready(function() {$(“”tweet-url hashtag" href=“https://twitter.com/#!/search?q=%23event_page_name” title=“#event_page_name”>#event_page_name“).DefaultValue(”suggested event name");});
  • tagged this with Answered 2012-09-26 17:41:15 -0700
  • responded with completed 2012-09-26 17:40:44 -0700

    I am using the text_field "submitted_address", class:"text" variable and the pre-fill text is not showing up. Can anyone tell me how I could either edit this text or make the prefill text show up. Thanks very much

  • tagged this with Helpful 2012-09-25 19:08:08 -0700