Inline spreadsheet pass values

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
ds4be
Posts: 20
Joined: Fri Nov 07, 2014

25 Apr 2016

Hi

I am using the inline grid as per following link

http://spform.com/forms-designer- ... point-form

I would like to pass the values from the parent to the child similar to the way the id has been passed on, the fields i would like to pass the values are

Date Raised : date field internal name date_x0020_raised

Department : lookup field

Site: Choice field.

User avatar
rostislav
Moderator
Posts: 364
Joined: Mon Oct 19, 2015

25 Apr 2016

You want to auto-fill those fields in grid mode? If so, have you used the populateFieldsInGrid function, which is described in the article you quoted?

ds4be
Posts: 20
Joined: Fri Nov 07, 2014

26 Apr 2016

The example does not show how to populate the following fields from the parent, it just shows how to imput a standard set of data.

Date Raised : date field internal name date_x0020_raised
Department : lookup field
Site: Choice field.

User avatar
rostislav
Moderator
Posts: 364
Joined: Mon Oct 19, 2015

26 Apr 2016

For that you simply need to do something like this:

Code: Select all

fd.populateFieldsInGrid($('.related-items'), {
 myField: fd.field('InternalName').value(),
 etc..
});
A summary of various ways of retrieving field values: http://formsdesigner.blogspot.com/2013/ ... -form.html

ds4be
Posts: 20
Joined: Fri Nov 07, 2014

26 Apr 2016

Thanks, it seemed to work for the lookup field, however when i try the date field it does not enter the date in the child item.

fd.populateFieldsInGrid($('.related-items'), {
Date_x0020_Raised: field('Date_x0020_Raised').control('getDate'),
});

fd.populateFieldsInGrid($('.related-items'), {
Date_x0020_Raised: fd.field('Date_x0020_Raised').value(),
});

User avatar
rostislav
Moderator
Posts: 364
Joined: Mon Oct 19, 2015

26 Apr 2016

.value() works fine for me. What date locale are you using (site settings -> regional settings -> locale)?

ds4be
Posts: 20
Joined: Fri Nov 07, 2014

27 Apr 2016

English (United Kingdom)

User avatar
rostislav
Moderator
Posts: 364
Joined: Mon Oct 19, 2015

27 Apr 2016

Send the source code of the page to support@spform.com

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 15 guests