Value field in web form

Hi
I want to put a default value in a web form feild but when a user clicks the form field the value disappears to allow them to input their text.
How is this done? I tried adding  value="text" but this make the value permanent and has to be deleted by the user before they can fill in the field.
Anyone got any ideas?
Thanks
Ken

I used this from StackOverflow...
<html>
<head>
<title>
</title>
<script lang='javascript'>
function makeBlank(obj,defMsg){
    if(obj.value==defMsg){
        obj.value="";
function fillDefValue(obj,defMsg){
    if(obj.value==""){
        obj.value=defMsg;
</script>
</head>
<body>
<input style="width:190px" onblur="fillDefValue(this,'User Name')" onfocus="makeBlank(this,'User Name')" value="User Name" name="fromname" id="fromname" type="text">
</body>
</html>
Works nicely :-)

Similar Messages

  • How we create dynamic add form field in web form

    How we create dynamic add form field in web form?

    Hi,
    Thanks for reply.
    I need to create a form in which "add more" input field dynamically. For
    example sometime we need field on or more. Please look at the demo, I need
    to create form as per demo in business catalyst:
    http://www.openjs.com/scripts/examples/addfield.php

  • File Attachment field on web form

    Hello all
    A really simple question but I cant seem to work it out. I have added a file attachment field to a web form but when somebdy uploads a image using this form my client does not get the file. I assumed it would go to his email but this does not seem to be the case? Is there a way that I can direct this files to a location or email account?
    Any info would be great
    regards
    Martin

    Because of the posibility of big files (up to 100mb) being stored sending those through emails is basiclaly not possible for the most part - they are emails. Even Google Gmail has a top out of 25mb which is bigger then most.
    The file is stored agaisnt the case in the system. The file in the workflow mentioned should at least be a link you click through to get the file via the admin. If not you click the case link and get it in there anyway.

  • Populating Customer Type field via web form

    Hi all,
    There's a field in the CRM called Customer Type. Is it possible to populate this field using a web form?
    Appreciate any advice.

    Ok thanks for letting me know. Do you know if the feature will be coming in the first or last half of the year?

  • Planning web form

    Is it possible to use a value on a web form to calculate another value on the same web form without hitting save? We would like to enter a value in a column and temporarily generate an output in another column by hitting enter.
    Thanks

    Hi,
    With a little bit of Javascript knowledge, by customizing Validatedata.js file you can do exactly what you are looking for. However, I don't think the calculation would happen immediately after entering a value. You might need to place a button on which it says "Compute" and it calculates the value based on the values on the form. Search older posts in the forum relating to Validatedata.js if you are looking for more info.
    Cheers,
    Alp

  • Text invisible when typing in online web forms

    Just recently when typing into text fields on web forms, my text is invisible. For example, I had a little trouble registering for this help service as I could not see what I was typing. The cursor is visible and moving, but no text is visible. This does not happen on my other browsers and didn't happen in Firefox until very recently. I notice however that this form I am currently typing in is ok; I guess it has different coding behind it.
    Another problem that started around the same time - when I go back to previous page, it doesn't go back to last position but puts me back at the top of the page. Don't know if this is related.

    This is more likely a font problem (missing or corrupted) then an encoding issue.
    Try to disable the website fonts as a test and try a few different default (serif/sans-serif) fonts.<br />
    Tools > Options > Content : Fonts & Colors > Advanced ([ ] Allow pages to choose their own fonts, instead of my selections above)<br />
    If that works then you need to reinstall the corrupted font.

  • How to Supply the form field values to a pdf form when loading it

    I am working on a web site project using Asp.net where the user has to fill in a PDF eform in acrobat reader. Then when he clicks on submit it returns to my asp.net app and the PDF form supplies the values back to my asp.net app. So my asp.net app has the values that were filled in the PDF form and can save those values and work with them...
    OK.
    What I need to know is when I am in my asp.net app, and the user wants to go back and reopen the same form, from my asp.net app..... then how do I pass back the values that were saved back to the PDF form??
    I know if I had a way to pass the values to the PDF form in some way then in the Doc.open or doc.load event of the form I could easily write a little javascript to plug in the values in the PDF form fields.
    but how do I pass those values from my asp.net app to my PDF form???
    thanks

    Thanks bcweed for all the info. I fixed my problem, it had something to do with LiveCycle Designer. If I just use Acrobat to add the form fields, then the FDF works fine. As to your situation with the SavToBuf, that happens to be the method that I am using, so I will just post my code here, and maybe you can pick out what is different from yours. The Response.BinaryWrite(FDFin.FDFSaveToBuf)is at the bottom.
    Sql = "SELECT * FROM Invoices" & WHERE
    Set Conn = Server.CreateObject("ADODB.Connection")
    Conn.Open Db_Conn_Str
    Set Rs = Server.CreateObject("ADODB.Recordset")
    Rs.Open Sql, Conn, adOpenStatic, adLockReadOnly, adCmdText
    If Not Rs.EOF Then
    End If
    Set FdfAcX = Server.CreateObject("FdfApp.FdfApp")
    Set outputFDF = FdfAcX.FDFCreate
    'VendorID = VendorName = VendorNum = InvoiceDate = PreparedBy = ""
    Gross = 0
    For I=0 To Rs.RecordCount-1
    If InStr(VendorID,Rs.Fields("VendorID")) = 0 Then
    VendorID = VendorID & Rs.Fields("VendorID") & ", "
    End If
    If InStr(VendorName,Rs.Fields("VendorName")) = 0 Then
    VendorName = VendorName & Rs.Fields("VendorName") & ", "
    End If
    If InStr(InvoiceNum,Rs.Fields("InvoiceNumber")) = 0 Then
    InvoiceNum = InvoiceNum & Rs.Fields("InvoiceNumber") & ", "
    End If
    If InStr(InvoiceDate,Rs.Fields("InvoiceDate")) = 0 Then
    InvoiceDate = InvoiceDate & Rs.Fields("InvoiceDate") & ", "
    End If
    If InStr(PreparedBy,Rs.Fields("PreparedBy")) = 0 Then
    PreparedBy = PreparedBy & Rs.Fields("PreparedBy") & ", "
    End If
    Rs.MoveNext
    Next
    Rs.MoveFirst
    outputFDF.FDFSetValue "VendorID",VendorID,False
    outputFDF.FDFSetValue "VendorName",VendorName,False
    outputFDF.FDFSetValue "InvoiceNum",InvoiceNum,False
    outputFDF.FDFSetValue "InvoiceDate",InvoiceDate,False
    outputFDF.FDFSetValue "PreparedBy",PreparedBy,False
    For I=0 To Rs.RecordCount-1
    outputFDF.FDFSetValue ("Line."&I), Rs.Fields("Amount")&"", False
    outputFDF.FDFSetValue ("Company."&I), Rs.Fields("Company")&"", False
    outputFDF.FDFSetValue ("GL."&I), Rs.Fields("GL")&"", False
    outputFDF.FDFSetValue ("CC."&I), Rs.Fields("CostCenter")&"", False
    outputFDF.FDFSetValue ("DocNum."&I), Rs.Fields("DocNumber")&"", False
    Gross = CCur(Gross) + CCur(Rs.Fields("Amount"))
    Rs.MoveNext
    Next
    outputFDF.FDFSetValue "Gross", Gross, False
    Rs.Close
    Set Rs = Nothing
    Sql = "UPDATE Invoices SET DatePrinted = '" & Now() & "'" & WHERE
    Conn.Execute Sql
    Conn.Close
    Set Conn = Nothing
    outputFDF.FDFSetValue "PrintDate", Date(), False
    outputFDF.FDFSetFile "http://admin/invoices/pdf/InvoiceAuthorization.pdf"
    Response.ContentType = "application/vnd.fdf"
    Response.BinaryWrite outputFDF.FDFSaveToBuf
    outputFDF.FDFClose
    %>

  • Web Forms Number Field - Not processing decimals!

    We have created a monster web form on a clients site. As it is, we have had to setup an API to deal with the data after its been generated by BC and modify it before sending it on to the client. The client saw no reason for fields that did not have anything entered against them to be sent through in the workflow notification - and I agreed. 
    Now after all these other problems have been resolved, I discover that all my  "number" fields cannot process a decimal place, and they round up or down. BC have suggested I need to recreate the form and just make them all 'text strings'.
    Not good enough. Its an EPIC form with over 100 fields in it. We, in good faith, read the instructions that can be found here: http://kb.worldsecuresystems.com/478/bc_478.html?bc-partner
    that state "Number - a text box that must have a number entered into it". No note about NOT using decimals!
    The confusing thing is, it lets you enter the decimal from the front end, even displays the web form confirmation page correctly with decimals. But when it creates a case in BC, it rounds the numbers. So its only at this late testing stage that we have discovered the issue
    Does anyone have any ideas about faster ways of re-creating this entire form ?
    I did submit a support ticket, and was told to switch to the old UI and then just change the type of the fields. But when we try to change a form field from 'number' to 'string' it brings up the message "WARNING: Field updated successfully but type not changed as field has associated values.". Then they said to:
    Copy that specific webform change the type fields of the form and then remove the old webform and re-name this one copy with the first webform name. The copy option is available under the link I have provided to you.
    However this still means we need to change *all* the fields and then get every field' s ID and insert it into the javascript. Very very time consuming
    So A) everyone else be warned and B) Does anyone have a shortcut?
    Thanks!!

    Thanks for confirming my fears
    Its a shame that since its such a long standing thing, it hasnt actually been added to the knowledgebase... which when we started this project (long before this schmozzle of a new system was introduced) was the most relevant place to look.  When I start something, I tend to look in the KB.... not think "oh perhaps I should check the FAQ's in case there is a long standing issue that isnt contained in the KB".

  • How does APEX check for null values in Text Fields on the forms?

    Hello all,
    How does APEX check for null values in Text Fields on the forms? This might sound trivial but I have a problem with a PL/SQL Validation that I have written.
    I have one select list (P108_CLUSTER_ID) and one Text field (P108_PRIVATE_IP). I made P108_CLUSTER_ID to return null value when nothing is selected and assumed P108_PRIVATE_IP to return null value too when nothign is entered in the text field.
    All that I need is to validate if P108_PRIVATE_IP is entered when a P108_CLUSTER_ID is selected. i.e it is mandatory to enter Private IP when a cluster is seelcted and following is my Pl/SQL code
    Declare
    v_valid boolean;
    Begin
    IF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NULL THEN
    v_valid := TRUE;
    ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NOT NULL THEN
    v_valid := TRUE;
    ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NULL THEN
    v_valid := FALSE;
    ELSIF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NOT NULL THEN
    v_valid := FALSE;
    END IF;
    return v_valid;
    END;
    My problem is it is returning FALSE for all the cases.It works fine in SQL Command though..When I tried to Debug and use Firebug, I found that Text fields are not stored a null by default but as empty strings "" . Now I tried modifying my PL/SQL to check Private_IP against an empty string. But doesn't help. Can someone please tell me how I need to proceed.
    Thanks

    See SQL report for LIKE SEARCH I have just explained how Select list return value works..
    Cheers,
    Hari

  • Change the value of a field in a form when the form is displayed

    Hello
    I have a report which has a link to a form for updating the records. I have used a link to the form from report which displays the the record to be updated i.e it gets default values from the report. I need to change one of these values at the time of displaying the form. The set_value in the 'before displaying the page' section doesn't change the vaue displayed in the form. I tried in other 'Advanced pl/sql' sections provided but didn't succeed.
    Thank you
    Jayasree

    hi,
    let's call the new value u want to set "NewValue"
    insert this code in the before displayin' the page
    htp.p('<script language="Javascript1.1">
    function defaultValue(fieldname)
    var thefield;
    for( var v=0; v < document.forms[0].elements.length; v++)
    // get the right field
    if (document.forms[0].elements[v].name.indexOf(fieldname) >= 0 )
    thefield = document.forms[0].elements[v];
                        thefield.value='''||NewValue||''';
    break;
    </script>');
    in the after displaying the page section call the function above with the appropriate field:
    htp.p('<script language=javascript1.1>
    defaultValue(''Field_Name'');
    </script>');
    where Field_name is the name of the field u want to change the value!
    Mohamed

  • Issue with setting a default value to a Tabular Form field

    Hi -
    I'm running into an issue setting the default value of a tabular form column. I'm trying to set the default value to the row number (#rownum#). This used to work in previous versions, but now it's returning 0. Is there a was to set this value in the default value attribute of the field with a substitution string?
    Thank you in advance for help!

    Share with us what worked in previous versions.
    Jeff

  • I am creating a web form from a template and I need to change a field. It is just a text field at the moment but I need to change it to a field that the customer can fill in. How do I do this?

    I am creating a web form from a template and I need to change a field. It is just a text field at the moment but I need to change it to a field that the customer can fill in. How do I do this?

    See this thread:
    http://answers.acrobatusers.com/Is-add-instructional-text-text-field-disappear-clicked-q19 5078.aspx

  • How to use FMS on OPCH field to query value on a field in PHC1 form?

    Hi All,
    I have a problem. I created a user defined field in the AP Invoice form (parent form-OPCH). Now I would like to use the formatted search to add a query to that field that will select a value from another field also on the same form but at the row level (child form-PCH1). It seems that this is not possible. Any suggestions?
    A general question for this: is their any way that I could use the formatted search to query value on an opening form that is inactive?
    Thanks
    Duc

    Hi Sampath Kumar devunuri,
    Thanks for your reply. It does not work. I have tried to searched through the forum about this topic and it seems that FMS will not work at row level. Not sure if there is any solution to overcome this.
    My query is for example: I want my UDF on OPCH form to capture the description of the first row in PCH1:
    Select $[$39.1.1]
    If I assign it to a UDF at row level it works perfectly.
    If I assign it to the Remark field on OPCH it still works.
    But if I assign it to a UDF at title level it does not (this is what I need)
    This may be because at title level the form name is OPCH which is different with the form name at row level: PCH1
    I cannot think if there is any way that I could set focus on PCH1 to get the value.
    Duc

  • Can't access a value stored in a form text field

    I created a small test page to try and understand how a piece of javascript works, well actually it's not working. All I'm trying to do is display the value entered in a text field in a form and it's failing with 
    SCRIPT5007: Unable to get value of the property 'value': object is null or undefined 
    temp.php, line 39 character 1
    The line it's failing on is this
    x = document.getElementById("otherChoice").value;
    The page can be seen here www.hollisterairshow.com/temp.php
    I just don't understand why it thinks the text field is undefined when it clearly is. I'm using DW CS4 and IE9.
    Thanks for any pointers you might have.
    Tony

    Thank you so much, I've been struggling with this for almost a week now.
    Just to complete the answer, I had to assign an ID to the text field and also to the "Other" button so that the JS could access both when it moved the value from the text field to the Button which was the original problem I was trying to solve.
    Thanks again for the assistance, much appreciated.
    Tony

  • Web Forms using substitution variables with multiple values

    Hi,
    I am trying to select a substitution variable in a webform (Hyperion Planning 11.1.1.3) with multiple values in EAS, but is not working does somebody knows if this an expected behaviour.
    I allready try ex.
    &Months = "Jan","Feb", "Mar"
    &Months = Jan, Feb, Mar
    &Months = Jan:Mar
    Please let me know something, since as far as I recall in previous versions of Hyperion Planning this was possible.
    Kind Regards

    We experienced the same issue, our requirement was that for the first half of the year the substitution variable was = Oct and for the second part of the year Jan:Dec. We were lucky that for the second scenario we had a Total Year member as well (that at the bottom level is Jan:Dec). So on web form we picked Level0 descendants of the substitution variable. That worked fine but not the range.

Maybe you are looking for

  • "Download File from disc"

    I'm building an interactive DVD that runs from Mac/PC projectors. The final menu on this disc links to multiple image files on the disc that are intended to be downloaded to the user's desktop. I've used the getURL to link to these images from the me

  • E_MAIL program not working

    halo fellow SAPiens, i worte a program which when executed will mail its vendors (regarding Bid date -- for SRM)......but i dont receive any mail when executed in the SRM server........but when the same prgm is executed in R/3, i do Rx a mail........

  • Can you tell if someone is blocking your number?

    When I pull up contacts to send text messages to, they are different colors.  Do you know what  light grey mean?  Does this mean they are blocking you? Anyone know?

  • Window borders are not displaying.

    Hi Experts, while testing Window borders are not displaying but in se71 T.Code, in menu option Utilities -> Printing Test it is printing the boarders. Please help me in this regard.

  • Processes in a zone runs extremly slow

    I have created a zone in a Sun Fire T1000. This zone show the same strange symptom as another zone running in a T5200. The T1000 running in FSS-mode while the T5200 is running with default configuration. For instance, if i start a command like 'gzip