Adobe Form field display based on user

Dear Friends
   I am creating one form. which has the three fields :
   1) Telephone:
   2) Email:
   3) Portal Id:
   My work scenario is when form reaches via workflow to Telefone person he / she only can enter data in the telephone field where he / she cant enter data in email and portal id field and this for all the fields like email guy has access to enter data only in  email and portal will be for portal id,  except concern person's field all other fields become read only.
I have design the form and successfully trigger it via UWL as well. but all the field are allow to enter data as i dont know how to controll them. I have the role in my bsp's controller do_init method but dont know how to utilize this info to set as read-only for non concern users.
Is ther any way to achieve this please tell me how I can achieve this functionality. your any help will be appreciated.
Thanking you
Regards
Naeem

Dear Chintan
   Thank you very much for your reply.. i incorporated your solution in following wat
---------data.#subform[0].TextField3::ready:form - (FormCalc, Client)-------------------------------
  <---- this is the line two and column 1
if(ROLE1 == "TEL")               //form1.page1 - indicates you form hierarchy so change it accordingly.
    form1.page1.phone.access = "open";
    form1.page1.email.access = "readOnly";
    form1.page1.portal.access = "readOnly";
else if (ROLE1 == "EMAIL")
    form1.page1.phone.access = "readOnly";
    form1.page1.email.access = "open";
    form1.page1.portal.access = "readOnly";
else if(ROLE1 == "PORTAL")
    form1.page1.phone.access = "readOnly";
    form1.page1.email.access = "readOnly";
    form1.page1.portal.access = "open";
I am receiving the following error at line 2 and column 1
" Script Failed ( language is FormClac;contex is xfa[0].form[0].data[0].#subform3[0].textField3)
Error syntax error near token '{' on line 2 column 1. could you please tell me where i m making mistake.
I am not using the sub-form.
for your information what I am doing is:
I have 7 input fields:
Form receives the values for the following fields from the BSP Page controller (do_request).
field 1 pernr ( read only)
field 2 emp_name (read only)
field 7 role1 (invisible)
by this function module
call function l_name
    exporting
      /1bcdwb/docparams  = fp_docparams
      pernr = emp_id
      emp_name = emp_name
      role1 = role1
    importing
      /1bcdwb/formoutput = fp_result
    exceptions
Form fields which properties need to be set on role
Field3 Telephone
Field4 Mobile (same as telephone and optional so not important)
Field5 Email
Field6 Portal
I have use the code on the above 4 fields.
Please help me to rectify the error I ll greatly appreciate your reply.
Thanking you
Regards
Naeem
Edited by: Naim Khan S Babi on Oct 8, 2009 4:13 PM

Similar Messages

  • $ sign in adobe form not displaying properly..

    Hi I have inserted 1 decimal field in my adobe form and display pattern of that field I have given as $(zzz,zzz,zzz,zz9.99).
    but when i deploy my application and see in the portal, $ sign is not getting displayed properly, its not able to get interpreted properly.
    I am using IE 7.0 browser.
    please help how to get this issue resolved, do i have to change any browser settings ??

    Hi,
    I am using adobe reader 8.0
    my locale is:  default locale, i tried changing this with USA english , but still not luck
    i am getting dark small square block instead of dollar sign (dollar sign not able to get interpreted properly)
    please help.

  • How to make form field read only for users with certain permissions

    We need to make two form fields read only for users with certain permissions. Kindly guide me on how to do this in Infopath. I searched and there is an option to disable to the column, but no option to select user permissions. 
    Please give your suggestion on this. 
    thanks.

    Hi,
    See the link below:
    http://info.akgroup.com/blog-0/bid/69277/InfoPath-Restrict-visibility-to-users-in-a-SharePoint-Group
    Here you can add the fomatting action on the field to disable the field if those users belong to certain Sharepoint group (does not matter the permission levels though). Hope it helps.
    Regards, Kapil ***Please mark answer as Helpful or Answered after consideration***

  • Want to use Adobe forms departmentally.  How many users per license?

    How many people can use Adobe Forms per license/how many computers can we download software to?

    Adobe FormsCentral is a web-based app so there is nothing to download - you access from the web browser.
    Each users who creates forms needs a license of FormsCentral. In a month or so you'll be able to by a team pack (5,10,25) at reduces prices for a larger group who wants to create forms.
    Randy

  • Acrobat form field that allows Reader user to browse and insert a picture into a predefined area

    Is there a way to do insert a form field into an AcroForm that allow Reader users to browse and insert a picture into that form field?
    I know that LiveCycle can do this, but I need to do this using an AcroForm. Or maybe there's a third-party plug-in that can be used in an AcroForm to do this?

    Jay,
    The new version of Reader, which was announced today (see AcrobatUsers.com), will now allow you to use the field.buttonImportIcon method: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.737.html
    For a bit more information, see: http://forums.adobe.com/thread/743823
    Here's the minimum code that can be used in the Mouse Up event of a button that's configured with a layout that's something other than "Label only":
    // Mouse Up script for a button
    event.target.buttonImportIcon();
    Since this isn't backwards compatible with Reader, you'll probably want to add additional code to test what version is being used and alert the user if it's pre-11. You should also check the return value to see if anything went wrong. The hard part is getting everyone to upgrade, but this and a number of other features should make it worth it.

  • Single Record Form: fields display with the wrong width

    I'm laying out fields on a single record form and notice that the width of the fields displayed when I run the form is less than the width I specify on the "Edit Page Item" page. Here are 3 examples:
    field 1: Display as=text, Width=100, Maximum Width=100, ==> displayed width=76
    field 2: Display as=text, Width=50, Maximum Width=50, ==> displayed width=46
    field 3: Display as=textarea Width=100 Maximum Width=100 ==> displayed width=100
    Anyone know why this is happening? I'm trying to layout the form so that it has a pleasing look. It's hard to get the fields lined up when they don't display according to the widths specified.
    Edited by: Corvette Captain on Aug 9, 2012 3:21 PM

    Hi,
    >
    I'm laying out fields on a single record form and notice that the width of the fields displayed when I run the form is less than the width I specify on the "Edit Page Item" page. Here are 3 examples:
    field 1: Display as=text, Width=100, Maximum Width=100, ==> displayed width=76
    field 2: Display as=text, Width=50, Maximum Width=50, ==> displayed width=46
    field 3: Display as=textarea Width=100 Maximum Width=100 ==> displayed width=100
    Anyone know why this is happening? I'm trying to layout the form so that it has a pleasing look. It's hard to get the fields lined up when they don't display according to the widths specified.
    >
    Setting the Width of the Page Item sets the input elements "size" attribute. HTML rendering based on size attribute is not a precise as you need. You should use CSS for precision. See Compatibility Notes
    Cheers,

  • Form Field Display Only

    Is there anyway within ADDT to specify a form field that is input on insert but display only on update? Marking the field read-only makes it so for both. I would like to let the user input the data, not be able to change it, but still see it for reference.

    If I understood correctly you want to allow the user to input data on insert but only be able to see the field value on update. You can make a form field available on insert/update/or both and have it display as text (so that the user can see if for reference but not be able to change it) by clicking on the Manage Dynamic Form wizard icon in the Developer Toolbox bar and changing the corresponding settings.
    <br />These options however don't cover your scenario as you want the field to be editable on insert only. I tried tweaking the generated ADDT code but it didn't work. The only other way to do this that I can think of would be to add the read-only attribute dynamically, that is on update only. The code to add to the field would simply be:
    <br /><%If Request.QueryString("ID") <> "" Then Response.Write("readonly='readonly'")%>. This code simply checks to see if a record ID is being passed to the dynamic form page and if it is then we know we're on an update page so the readonly field attribute is added (I code in VBScript so the code might be slightly different in your case).

  • Adobe form image display

    How to upload an image on Adobe form and add some condition for image display?

    hello,
    you need to use Image field, not only and image to display the picture chosen in backend. For a simple image you need only image field. Check there is a checkbox "embed image data" and set it to true.
    You  need to pass the picture as a XSTRING from backend if I remember it well. Please check How to integrate Adobe form
    on WD ABAP. Link: http://www.docstoc.com/docs/2540673/How-To-Integrate-ADOBE-form-on-WebdynPro-for-ABAP-and-Deploy-it-
    this will show you the fast working example of working with pictures in adobe forms. Regards Otto

  • Adobe Form Fields Visibility

    hi all,
    I have created an adobe form using adobe life cycle designer.
    In the form I have to placed a radio button with options yes and no.
    If yes radio button is clicked then the another check box should apper in the form .
    If the user clicks no radio button then the checkbox  need not appear.
    And if the user clicks on the checkbox ,one textfield should appear.
    How to control the visibility of the fields?
    Or how can I enable or disable the field....
    Please provide me th calcform script to be written and in which event it should be written...
    Please help
    Regards,
    Rheema Rahael

    hi,
    Thanks for your reply.
    Please tell me what will be the path of the check box.How can i get it?.....
    Can you tell me what is the <b>condition</b> that i should check before setting the check box to be made visible on invisible...
    When I click on the radio button ,I need the the check box to be made visible on yes and on no check box is invisible....
    Please tell me what condition should be placed inside <b><b>if(....)</b></b>
    Regards,
    Rheema Rahael

  • Form field displaying but not in session state

    I have a form which displays data depending on node selected in a tree. The data displays ok and allows me to update but If I try to access a value ( I want to filter a select list ) its empty.
    Displaying all session values reveals that only the primary key of the form is held in sessikon state. I have set the value I want to read to 'Display as Text ( saves state )'
    Regards
    Seán

    I have 2 regions, a tree and a form. The form was created with the wizard and I added the tree afterwards.
    The tree nodes are links which branch to the same page and set the value of the primary key field .
    I've copied the event view of the page below...
    Page Rendering
    Process: After Header Fetch Row from ALL_COST_CENTRE (#OWNER#:ALL_COS..)
    Region: Tree Page Template Body (3) (1,20)
    Admin Tree
    Tree: 11210417299635529
    (50) P8_TREE_ROOT [Hidden]
    Region: HTML Text Page Template Body (3) (3,10)
    Office Details
    (10) CANCEL Location: Template Close
    (30) SAVE Location: Template Change
    (1) P8_COST_CENTRE [Display as Text (saves state)]
    (10) P8_NAME [Display as Text (saves state)]
    (15) P8_OFFICE_TYPE [Display as Text (saves state)]
    (30) P8_DIST_PARENT [Select List]
    (40) P8_ADMIN_PARENT [Select List]
    Region: HTML Text Page Template Body (3) (3,40)
    Administration
    No computations
    Page Processing
    No computations
    Validation: P8_NAME not null (Inline+Notification) sequence: 10
    Process: After Submit Process Row of ALL_COST_CENTRE (#OWNER#:ALL_COS..)
    Process: After Submit reset page (8..)
    Go To Page: f?p=&APP_ID.:8:&SESSION.&succe (After Processing) sequence: 1 Unconditional

  • Adobe form in display only

    Hi expert,
    we have developed an adobe form for the workflow for invoice but it can change we want it to be in display only When it get the the customer. PLEase help.when the customer receive the invoice He is able to make change on the invoice
    Regards,
    Flavien
    Edited by: Flavien Gagoum on Feb 26, 2009 10:30 AM

    Hi Flavien Gagoum 
    In Adobe form, there are two types of forms are available.
    1. Static (Which can not be changed)
    2. Interactive (Which can be chaged, and we can make some / Many fiels disabled)
    So for your case, try to use Static form, hope you have used interactive form.
    Thanks and Regards
    Balaji K.

  • Problem with data in Adobe Forms - partially displayed(first pade only)

    Hi all .
    I only start work  with Adobe Forms so I need your help .
    My form includes   table with lot of data .
    My problems are:
    1.only the first page with data is displayed and I don't see the rest  of data .
           What I need to define  for get all my data printed ?
    2. How can I print total at end of  table ?
                 Regards Helena .

    select the subform where your table body present , there you choose the pallete object inside you need to set.
    if you still have doubts see these blogs
    Adobe Forms Using:  Nested Table, Text Module & providing the functionality of Page Total & Grand Total
    Displaying Internal Table in Adobe Form

  • Using comment tools in adobe form fields

    Is there any way to enable commenting tools so they work within pdf form fields?  I have created a pdf form, and as part of the review process (once the form is completed), other users need to be able to use commenting features on the text entered into the form fields (i.e. highlighting, strikethrough, etc.).  I haven't found any way to do this within the fields themselves.

    Acrobat can flatten all form fields / comments via Preflight (which lives in the Print Production tool pane) - select "single fixups" - the wrench icon - then type "flatten" in the search box to find the "Flatten all form fields" fixup, and run it.
    You can also flatten everything via the JS console. Press Ctrl-J to open the console, clear it with the trash icon, enter the command this.flattenPages() and press ENTER.
    If you want more control over what is flattened, we have a free add-on for Acrobat here.
    Note that you cannot flatten a Reader-extended document, so you must first use the File > Save a Copy menu item to de-extend your form.
    Once flattened it's no longer a form, so the field values become part of the page (and can receive annotation markup). However to allow markup in Reader, you will have to re-extend the PDF usage rights.

  • How to set number of Rows of a table to be displayed based on user action?

    Hi Experts,
    I am getting data into the table. But only 5 records are displayed default. I want it to be a user selection.
    If user wishes to see 10 records, then first 10 records should get displayed. If user selects 'n' records then 'n' records should get displayed..
    How to achieve this?
    Regards,
    Yugesh A.

    hi Yugesh ,
    1 create  a input field UI
    2 bind its value property  to a attribute
    3 suppose ca_check attribute ( type string ) under node cn_check is binded
    read this in ur doinit of the view
      DATA lo_nd_cn_check TYPE REF TO if_wd_context_node.
      DATA lo_el_cn_check TYPE REF TO if_wd_context_element.
      DATA ls_cn_check TYPE wd_this->element_cn_check.
      DATA lv_ca_check LIKE ls_cn_check-ca_check.
    * navigate from <CONTEXT> to <CN_CHECK> via lead selection
      lo_nd_cn_check = wd_context->get_child_node( name = wd_this->wdctx_cn_check ).
    * get element via lead selection
      lo_el_cn_check = lo_nd_cn_check->get_element(  ).
    * get single attribute
      lo_el_cn_check->get_attribute(
        EXPORTING
          name =  `CA_CHECK`
        IMPORTING
          value = lv_ca_check ).
    4 nw for  ur table , make a another context attribute of type either string or I , say attr1
    bind its visiblerowcount property of table to attr1
    5 make a attribute in ATTRIBUTES tab of type string , say attribute
    set its value to lv_ca_check in doinit itself
    wd_this->attribute = lv_ca_Check
    6 nw in the method , where u need to validate how m,any rows user enter or doinit itself , set attr1 to the value of that attribute created under ATTRIBUTES tab ( named attribute)
    DATA : lv_count type string .
    lv_count = wd_this->attribute
    7 nw its very simple , set attr1 to lv_count , as it contains the count of the number which has entered in the input field
    DATA lo_nd_cn_check TYPE REF TO if_wd_context_node.
      DATA lo_el_cn_check TYPE REF TO if_wd_context_element.
      DATA ls_cn_check TYPE wd_this->element_cn_check.
      DATA attr1 LIKE ls_cn_check-ca_check.
    * navigate from <CONTEXT> to <CN_CHECK> via lead selection
      lo_nd_cn_check = wd_context->get_child_node( name = wd_this->wdctx_cn_check ).
    * get element via lead selection
      lo_el_cn_check = lo_nd_cn_check->get_element(  ).
    * set single attribute
      lo_el_cn_check->set_attribute(
        EXPORTING
          name =  `attr1`
          value = lv_count ).
    I hope it shud help
    proceed like these , u wud be able to achieve the desired functionality
    regards,
    amit
    Edited by: amit saini on Oct 20, 2009 1:12 PM

  • Round trip clearing adobe form field values not binded to webdynpro context

    Hi ,
    I have developed a webdynpro ABAP application with Interactive form. I'm calling a webservice on 'exit event' of the one of the form fields. Once webservice is executed, Im filling a table with 300 rows which is in the form. The table fileds are binded to webservice fields from the dataview of the form , these are not webdynpro context attributes in the data view.
    But when I open any seach help , this table values are disappearing. I need to execute the webservice again to get the values.
    can any one tell why the values in the table are disappearing? since I have binded to the webservice fields the values should remain there.
    Apprecaite your response.
    Regards,
    Ravi

    I looked over that note yesterday, but too quickly - i thought it was an older note explaining which standard programs to run to test out the connection etc...
    but i see now that there is an important point:
    The "pdfSource" attribute of the InteractiveForm UI element should be linked only if the Web Dynpro ABAP application requires the PDF document for further processing (saving data to the database, and so on). However, it is mostly only the data entered in the interactive form that is relevant for the application. If this attribute is linked, the Web Dynpro ABAP framework must request an updated PDF document from the Adobe document services each time data is changed in the form.
    It looks like this is saying that a round trip is possible in WDA.
    EDIT - I wish SAP would fix this certificate issue. My first post every day is doubled because of it.
    Edited by: robert phelan on Jan 7, 2010 3:22 PM
    Edited by: robert phelan on Jan 7, 2010 3:25 PM

Maybe you are looking for