cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AndrewValenzuel
Advocate II
Advocate II

Form is blank in preview mode, but when I'm in edit mode the form is populated

I have a form which is populated based on a gallery.  The data source is sharepoint.

 

The gallery's name is TimeGallery.  The Sharepoint list is named ChargesTime.  The form's data cards are set to display the following:  "TimeGallery.Selected.StartTime".

 

In edit mode everything seems to work.  If I press Alt + whatever to interact with the form everything works.  But when I click the preview button the form just disappears, completely. 

 

Anyone else had this happen?  

1 ACCEPTED SOLUTION

Accepted Solutions
eka24
Super User III
Super User III

The Mode of the Form determines whether Data should show or not.

 To show data on form, there should be record in the Table.

After the Insert 2 buttons, 1 for New and other for Edit.

 

OnSelect of the Buttons put:

 EditForm(YourFormName)  -- This will show data on the form not blank.

 NewForm(YourFormName)  -- This will enable enter new data

 

Can you change the "TimeGallery.Selected.StartTime" to TimeGallery.Selected

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

2 REPLIES 2
eka24
Super User III
Super User III

The Mode of the Form determines whether Data should show or not.

 To show data on form, there should be record in the Table.

After the Insert 2 buttons, 1 for New and other for Edit.

 

OnSelect of the Buttons put:

 EditForm(YourFormName)  -- This will show data on the form not blank.

 NewForm(YourFormName)  -- This will enable enter new data

 

Can you change the "TimeGallery.Selected.StartTime" to TimeGallery.Selected

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

For anyone having the same problem:  The "Items" property of the whole form is what needs to be set to "TimeGallery.Selected".

 

I had changed the default value of every data card to "TimeGallery.Selected.(item name)".

 

Thank you for your help.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (75,472)