Custom modifications in delivery Input form | Community
Skip to main content
Level 3
August 31, 2020
Solved

Custom modifications in delivery Input form

  • August 31, 2020
  • 1 reply
  • 1333 views

Hi all,

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

 

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Milan_Vucetic

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

1 reply

Milan_Vucetic
Milan_VuceticAccepted solution
Level 9
August 31, 2020

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

Level 3
September 1, 2020

Hi,

Thanks for your response. equalt to or grater - @3371165_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.