Dinamically change the name of a field.

Dear all,
Here is my problem.
I have a 3 text fields wraped in a subform.
I have also created a button so I can add new instance of this sub form at runtime.
All that works nice.
However, I also have a HTML subbmit button, and when I submit the form to my script, I only get the last instance of the fields in the subform mentioned above.
I am not sure what is the best solution for that.
I thought that on option is if while adding the new instances of the subform, I can also dinamically change the name of the fields, so for example
in the first instance of the subform I will have fieldname2 then in the second I will have fieldname2 and then when I submit I will get both, not just the last one.
But apperantly I do not know how to dinamically change the name of the field as well.
Any help will be really realy helpful
Thank you very much
Tsvyatko
Senior Datbase Manager
Columbia University

Hi Dhiyan,
Thanks for raplying.
Your suggestion does work in the way that id does change the caption of the fields dinamically.
However, looks like when I use the HTML submit button the form still submits the data only in the last fields of the repeated subform and their names have not changed.
Probably when you say that the name of the field is its caption you mean just a static text. But I am refearing to fields where you can enter data inside.
Basically, what I am trying to do, is to be able to dinamically create a table in my acrobat form.
This table has let say 2 fields: InstanceNumber and YearOccured.
So when I lets say add 3 instances in my acrobat form, I want to user to click an HTML submit button, and then through a PHP script I can submit all the 3 instance to a database.
However, when I check the REQUEST array, I only see these 2 fields once (instead of 3 times) and they contain the data of the last added row.
I assume that the problem could be solved if I can somehow change their names while I add rows.
So for example in the first row I will have:
InstanceNumber_1 and YearOccured_1
in the second:
InstanceNumber_2 and YearOccured_2
and in third
InstanceNumber_3 and YearOccured_3
And so when I submit the form it will submit the data of all the rows.
I am not sure if that is possible though. But definatelly I do not know how to do it ))
What I did to go around this is:
I have created 2 other (hidden) fields.
And when I click the submit button, before I do the actuall submit, I take the data from all 3 rows one by one and I put i in this hidded fields as (tab) delimited. And so now I have in my REQUEST array all the data from all 3 rows, in a single tab delimited field. And then I can work it out from there with PHP to submit it where ever.
However, I was hoping for some little more elegant solution, that is if I can change the names and so have all the fields data submitted. Or any other good suggestion
If anyone knows, will buy you a beer )
Thanks again
Tsvyatko

Similar Messages

  • Change the name of a field in the forms

    Hello, experts:
    As I can change the name of a field in the forms?
    When you change the name of a field on the form, the field name in the database also changes?
    Joan

    Hello Joan:
    If you mean the label of the form you can do with CTR + Double Click.
    Remember not to change the integrity of the database. Is only allowed to user fields
    make changes at the level of views, stored procedures, among others, which do not compromise the integrity of
    data.
    Remember, even if they change the label, has changed the field name in the database, only the presentation
    the form.
    Edwin Mauricio Nieto Leó

  • Changing the name of standard Field

    we have ECC6.0 with three countries using. Now i want to change the Standard Field name on an infotype ,i know how to change the name of the field. but my question is if i change the name of standard field it gets reflected for all the 3 countries, but i wanted to change for only one country?
    how can i achieve this?

    infotypes are Country Specific so pls check V_T582L once
    and check the screen numbers of the infotypes for various infotypes useing PE03 P0002 feature
    and check those module in V_T588M  and after this
    go to Tcode CMOD and do the rest of the thing u want to do
    hmm...... All the best

  • Change the name of std field in the std screen....

    Hi All,
    I want to change the name of the std field.....
    I used CMOD option but it changed the name across the client ......
    so i dont want that...i want it to be region specific......like for india only this text should display and for rest it should show the std name....
    the txn is VL01n/VL02n/Vl03n  ......
    thnx
    RK

    Hi,
    Plz try this Link
    I Hope with conditions u cant change field label.
    Let know where exactly u want this in report/Module pool.
    If in Report
    we can get with AT SELECTION SCREEN OUTPUT.
    Change standard field label
    http://www.sapfans.com/forums/viewtopic.php?f=13&t=323538
    Regards
    Edited by: Rasheed salman on Dec 14, 2009 12:35 PM
    Edited by: Rasheed salman on Dec 14, 2009 12:36 PM

  • Change the name of a field

    I am new to Adobe so I cobbled the following javascript together based on what I saw elsewhere in the forum, to be run as a batch process. I need to update approximatly 35 forms and the intent is to remove the "2" from the middle of 4 field names:
    /* ChangeName */
    // List of fields to change
    var aFields = ["AppA2RestYes", "AppA2RestNo", "AppB2RestYes", "AppB2RestNo"];
    // Loop through the fields and remove the "2" from the name:
    for (var i = 0; i < 4; i += 1) {
       var f = getField(aFields[i]);
       if (f) {
         f.value = f.valueAsString.replace("2", "");
    This is not working.  Can someone point out the error of my ways?
    Thanks!

    Any scripts, calculations, actions associated with these fields anywhere in the PDFs?
    You script is changing the 'value' property of the  field and not the 'name' property of the field.
    The 'name' property field of a field can only be 'read' there is no "write" access for this property.
    You can copy all of the form field properties of a field and use them to 'addField' , You can not delete a field, but you could set the field's 'display' property to 'display.hidden' and make the field 'readonly'
    You might want to download or link to the free Acrobat Acrobat JS Reference API.

  • How to change the name of a screen-field

    Hi gurus,
    I need to know if there is a possibility to change the name that appears in the infotype of any screen-field standard?
    If so, please, let me know
    Answer will be rewarder!!

    Hi,
    Transaction --- CMOD --- Goto -- Text Enhancement -- Keyword ---Change -- Enter the data element and change the field name.
    Hope it will help..
    Regards,
    Vikash

  • Change the name of field "product attribute1" in Sales Org 2

    Hi,
    We require to change the name of field "product attribute1" in Sales Org 2  in Material Master. Is there any provision in SPRO or it has to be done only with the help of Abapper.
    Please advise.
    Regards,
    Pratap

    Dear pratap
    its basically an enhancement but process is very simple you can also do it however if its your first time kindly follow the steps below mentioned
    1.First you need to get the Date Element Name of the field you want to change the description.
    2.To get that go to Material Master and to that field. Press F1.
    3.Press "Technical Information" button.
    4.You can see a field named "Data Element". Copy the value of that field for your field.
    4.Now to change the description, Go to Tx; CMOD.
    5.Select below Menu option. Go to / Text Enhancements / Keywords / Change
    6.Enter copiedr Data Element there and press Enter.
    Now you should be able to see field descriptions appear. You can change those as your wish
    Once done, Save.
    gud luck

  • How to change the name of the field in a ztable

    hi all,
    i have created a ztable with few fields, now i want to modify the name of the
    primary key field,means i want to change the name which i have given under the
    FIELDS tag. can anyone tell me how to do this.
    Thanks,
    satish.

    Hi,
    Please try this ...
    1. Go to SE11.
    2. Enter database table name.
    3. Click on change button.
    4. Then overwrite with the old field with new field name including the data element.
    5. Save and activated.
    6. Go to SE14 and enter above table.
    7. Click on edit button.
    8. Click on activate and adjust database with save data option.
    Regards,
    Ferry Lianto

  • Change the name of custom tab in me51n / me52n / me53n

    Hi,
    I have to add a few custom fields in PR item of  transactions me51n / me52n / me53n. I have used the enhancement MEREQ001 for adding the custom fields. The sytem automatically creates a custom tab with the name Customer Tab for the additional fields that I have added using the enhancement MEREQ001 while displaying in me51n / me52n / me53n.
    Now I have a requirement to change the name of the custom tab created for transactions me51n / me52n / me53n from Customer Data to Others.
    Can anyone suggest me how to go about doing this???
    Thanks in advance.
    Abhisek.
    P.S.:- Points will be be duly awarded 4 helpfull answers.

    Hi,
    I tried doing whatever you had suggested but it seems that it is not working.
    Could you suggest some other way to do this?
    Thanks and regards.
    Abhisek.

  • How can I change the name of my home directory?

    When I first set up my Macbook Pro a year ago, I put my first and last name. I didn't like this and later changed the login name to just my first name, but the "home" directory is still listed as my full name on the side panel in Finder windows. How can I change this, it won't let me rename that.

    Barney-15E wrote:
    You should have experienced that same effect when you managed to change you login name. How did you change your login name?
    I imagine that has something to do with why everything 'disappeared' when you changed the directory name.
    It's actually pretty simple to change the login name, and it doesn't affect files at all.
    All I did was change the field labeled "user name".
    Niel wrote:
    Move all of your files to the other home folder in the Users folder and then change the name.
    (38519)
    I'll try that, thanks.

  • How to change the name associated with iCloud email alias??

    I had MobileMe on the iPhone with alias email addresses and I liked how it didn’t attach any “name” to an alias. For example, I had MainUserName, then for aliases I would have [email protected], [email protected], etc. When I sent an email from my iPhone using one of the aliases as the "from" no name would be associated with the alias email address. If it was the MainUserName then it would associate it, e.g. Main User <[email protected]> will show up on the "From" field when I sent an email. But with iCloud on the iPhone (and iPad), it’s Main User <[email protected]>, Main User <[email protected], etc., which I don’t want.  If anything it should be Alias 1 <[email protected]> or Alias 2 <[email protected]>.  Anyway, I don't want any name associated with the aliases, so when I send an email it will simply say [email protected] or just [email protected] with no name association. 
    It works differently if I access iCloud through a web browser.  If I send an email via iCloud on the web, I can customize and have a different name with each alias, e.g., Tom <[email protected]> or Harry <[email protected]>  And the customization carries over to the Mail app on my Mac.  That would be ideal if the customization carried over to the iPhone and iPad, but I'd be happy if there was no name association with alias email addresses.  Hopefully, there's a solution to the iPhone/iPad situation with iCloud as I don't want the name linked with the main iCloud email address linked with all the different email aliases I have.

    Can I change the name associated with an ipod on my Mac?
    Select the iPod in the iTunes source list, click on its name, and type a new name.
    And can there be more than one iPod on one computer?
    Yes.
    (39352)

  • How to create a new workspace and change the name of the existing

    Hi,
    can any one help me how to create a new workspace in application express 3.1 on XE DB and how to change the name of a existing workspace.
    thanks
    Jana

    Jana,
    This is discussed at length in the User's Guide. See the section "Creating Workspaces".
    To rename a workspace using the admin application, edit the workspace attributes and type a new name in the field where the old name appears, then Apply Changes.
    Scott

  • How to change the text of a field in organisational assignment.

    hi gurus,
    how to change the text of field MSTBR (super visor) to a differnt name in info type pa0001.
    i have changed the field name in cmod , changed name appears in table.but it is not appearing in the info type screen 0001.
    how to resolve this pls help me..

    hi,
    The Field showing in the infotype 1 is FORPR.
    Change the text of this Field in CMOD.
    CMOD ->Go to ->tect Enhancements->keywords-> Change ->FORPR
    Change the text and check again.
    Regards,
    Manoj.

  • How do I change the name of my podcast in iTunes?

    My podcast is listed by my name (John Bell) in iTunes instead of its title (Bell's in the Batfry) which confuses a lot of folks looking for it.
    Is there a way somebody can explain to me... in "idiot english"... how I can get iTunes to change the name?
      Windows XP  

    I've looked at your code and the title of the code in your .xml file (and when its viewed in a web browser) has the title line down as your name not your podcast name.
    An error in the entry I'm afraid, not iTunes. As Mitchell says you can open the .xml file and edit the text - however, every time you create a new episode you may find the programme you're using will overwrite the code.
    As your name appears twice in your podcast (as the author and as the podcast name), only thing i could suggest is looking at the details youve entered to see if you had to put your name in twice in your programme - if you had to put it in twice try changing one of the fields, publish it and then open the xml file in a browser window - if the top line shows the amended name you know thats the one!
    Hope that all makes sense - it does in my head!!!! :o)
    Allen

  • How do I change the name of my computer

    How do I change the name of my new iMac, my wife set it up and she named it wrong and I want to name i differently. Now I have 2 computers on the network with her name as the computer name at least one has an 's after the name, but I just want a totally different name.

    Go to the "Sharing" Preference Pane in "System Preferences" and there is teh field at the top where you can enter/change your computer name.

Maybe you are looking for