Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

How to set a default date from a landing page submission

stephanef891866
Level 2
Level 2

Hi,

 We have a date and time field defined in our extended entity of the Profile that is configured with a default dynamic value (cf. screenshot). (GetDate())

We want to automatically assign a Date/Time to that field when the following landing page is submitted. We have added the field to the additional data section of our landing page with no value, in order to "force" the default to generate a date.

The problem is that once submitted the field never gets updated and is never set to a default value.

A) Is this expected?

B) If this behaviour is expected, what would the way to implement that use case?

Pasted_Image_08_10_2020__17_51.png

Pasted_Image_08_10_2020__17_46.png

Pasted_Image_08_10_2020__17_50.png

 

1 Accepted Solution
stephanef891866
Correct answer by
Level 2
Level 2

Hi @anasso83525035 , thanks for your feedback.

I have been in touch with the support who confirmed they will be taking this to the engineering team, with hopefully, an updated behaviour.

 

On top of your solution, another one would be to create an invisible input field in the landing page with a GetDate() value and map that to the field. 

 

Best

 

Stephane

View solution in original post

4 Replies
anasso83525035
Level 3
Level 3

Hello @stephanef891866,

 

I had the same issue a while back and could not make is work using your same logic, it seems like this is the expected behaviour. The default getDate() value of your field will only be populated if the profile is created via the create button in the UI interface.

 

But looking at your configuration you can do the following workaround : 

 

I see that your landing page only allows for Profile creation and not update. Thus, your registration date corresponds to the @created field of the profile table.

 

What you can do is have a workflow that runs every 10 min and queries all the profiles created by this landing page (you can target them via their subscription to your service for example or flag them via another field updated by the landing page), and update their registration date with the value from the @created field.

 

This solution is not real time though.

 

Hope this is clear enough.

 

 

stephanef891866
Correct answer by
Level 2
Level 2

Hi @anasso83525035 , thanks for your feedback.

I have been in touch with the support who confirmed they will be taking this to the engineering team, with hopefully, an updated behaviour.

 

On top of your solution, another one would be to create an invisible input field in the landing page with a GetDate() value and map that to the field. 

 

Best

 

Stephane

View solution in original post

anasso83525035
Level 3
Level 3
Hey Stephane, can you please elaborate on your invisible input field solution? Not sure how to make that work. Thanks !
Sukrity_Wadhwa
Employee
Employee
Hi @stephanef891866, It would be of great help to @anasso83525035 if you can help him understand this better. Thanks!