0

Create another record from button

Hi, I've creating an form for information on interviews, and I have a button that lets the user add another record for a second interview.  The button code is as follows:

let myIN := number(Id);
let NI := (create InterviewLog);
NI.('Candidate Name' := myIN);
popupRecord(record(InterviewLog,number(NI.Id)))

It's not picking up the Candidate Name from the previous record - where have I gone wrong please?

Screenshot 2019-05-19 at 16.18.36

4 replies

null
    • clairewilliams
    • 4 yrs ago
    • Reported - view

    Sorry - should add, on the first interview log, it picks up the candidate name from the candidate record.

    • clairewilliams
    • 4 yrs ago
    • Reported - view

    Ignore me - I fixed it!

    • keone
    • 4 yrs ago
    • Reported - view

    How did you fix this... I have a similar need and trying to learn this language

    • Sean
    • 4 yrs ago
    • Reported - view

    This works...

     

    let myIN := this;
    let NI := (create InterviewLog);
    NI.(Candidate := myIN.Candidate);
    popupRecord(record(InterviewLog,number(NI.Id)))

Content aside

  • 4 yrs agoLast active
  • 4Replies
  • 1497Views