Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

Custom modifications in delivery Input form

Avatar

Level 3

Hi all,

 When creating a new delivery template below fields needs to be filled in delivery properties general tab.

 

ramprakasht3196_0-1598860988236.png

Here I need to test the condition if campaign is valid to date is less than or equal to today, Then the campaign is valid to date should save 30 days prior to current date while save the delivery template.

 

My question is,

1. how to check the campaign is valid to date is less than or equal to today?

2. If  campaign is valid to date is less than or equal to today, how to set campaign is valid to date is prior to current date?

3. In which Input form above changes need to be done?

 

Thanks in Advance.

 

Best Regards,

Ram.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi @ramprakasht3196

you should edit nms:delivery and nms:newDelivery forms.

  • lower or equal to - @your_date_field <= GetDate()
  • equalt to or grater - @your_date_field >GetDate()

Regards,
Milan

View solution in original post

3 Replies

Avatar

Correct answer by
Level 10

Hi @ramprakasht3196

you should edit nms:delivery and nms:newDelivery forms.

  • lower or equal to - @your_date_field <= GetDate()
  • equalt to or grater - @your_date_field >GetDate()

Regards,
Milan

Avatar

Level 3

Hi,

Thanks for your response. equalt to or grater - @your_date_field >GetDate() is working fine.

Now I need to set date as currentdate+ 30 days.

I used below code. will it works?

 

<set expr="GetDate()+30" xpath="@campaignValidityDateTo"/>

 

Thanks,

Ram.

Avatar

Level 10

Hi @ramprakasht3196, please test it.
If not, try with AddDays(getDate(), 30)

Regards,

Milan