undefined result for sharepoint field

rss

Posted by Bruno BICEP - May 29 ’13 at 02:46

hello, I'm a user of SPForm Designer since 3 months.

So I've encountered some issues using framework when I'm trying using this :

 

fd.field('myfield').control().value();

the result is undefined so that the field contains a value.

thx for reply

  • Dmitry
    Dmitry
    Admin
    Member for: 7 years 2 months 10 days
    #1 by Dmitry May 29 ’13 at 03:23

    To get the field you have to use its internal name, not the display name. Make sure that 'myfield' is an internal name of your field. If so, what type of this field: text, multiline text, lookup etc?

  • Bruno BICEP
    Member
    Member for: 6 years 5 months 4 days
    #2 by Bruno BICEP May 29 ’13 at 11:51

    [#1]: thx for reply.

    I'm using the internal name for the field.

    The type of the filed is a dropdown list.

     

     

  • Dmitry
    Dmitry
    Admin
    Member for: 7 years 2 months 10 days
    #3 by Dmitry May 29 ’13 at 01:05

    [#2]: Also, you can not use js-framework in a display form or for the fields that are read only. What type of form do you use? Could you publish screenshot of your form?

  • Bruno BICEP
    Member
    Member for: 6 years 5 months 4 days
    #4 by Bruno BICEP May 29 ’13 at 04:01

    [#3]: Ok I see. I think my field is readonly. that's Why.

    I gonna make some tests. I'll let you know.

Displaying 1 to 4 of 4 messages