Skip to main content
Nintex Community Menu Bar
Solved

Calendar recurrence set to yes by default

  • July 26, 2017
  • 2 replies
  • 21 views

Forum|alt.badge.img+4

Does anyone know a way to set recurrence to yes by default on a Nintex Form? Thanks

Best answer by emha

due to how recurrence flag works it's little tricky, but try following

- add single line text control on form, set its default value to NO and configure some javascript variable for it, eg RecurrenceFlagAlreadySet

if you want you can hide the control with formatting rule

- next configure a CSS class for recurrence checkbox, eg RecurrenceFlag

- finally add following javascript code into forms custom javascript setting

NWF.FormFiller.Events.RegisterAfterReady(function () {
  if ( (! NWF$('.RecurrenceFlag input[type="checkbox"]').prop('checked')) && (NWF$('#'+RecurrenceFlagAlreadySet).val()=='NO') ){
     NWF$('.RecurrenceFlag input[type="checkbox"]').click();
     NWF$('#'+RecurrenceFlagAlreadySet).val('YES');
  }
})
‍‍‍‍‍‍

‌ recurrence flag‌

2 replies

Forum|alt.badge.img+14
  • Scholar
  • Answer
  • July 30, 2017

due to how recurrence flag works it's little tricky, but try following

- add single line text control on form, set its default value to NO and configure some javascript variable for it, eg RecurrenceFlagAlreadySet

if you want you can hide the control with formatting rule

- next configure a CSS class for recurrence checkbox, eg RecurrenceFlag

- finally add following javascript code into forms custom javascript setting

NWF.FormFiller.Events.RegisterAfterReady(function () {
  if ( (! NWF$('.RecurrenceFlag input[type="checkbox"]').prop('checked')) && (NWF$('#'+RecurrenceFlagAlreadySet).val()=='NO') ){
     NWF$('.RecurrenceFlag input[type="checkbox"]').click();
     NWF$('#'+RecurrenceFlagAlreadySet).val('YES');
  }
})
‍‍‍‍‍‍

‌ recurrence flag‌


brettando
Forum|alt.badge.img+4
  • June 24, 2021
Thanks for posting this, exactly what I was after, works perfectly.